• Wilzax@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 months ago

    Your game will actually likely be more efficient if written in C. The gcc compiler has become ridiculously optimized and probably knows more tricks than you do.

    • dejected_warp_core@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Especially these days. Current-gen x86 architecture has all kinds of insane optimizations and special instruction sets that the Pentium I never had (e.g. SSE). You really do need a higher-level compiler at your back to make the most of it these days. And even then, there are cases where you have to resort to inline ASM or processor-specific intrinsics to optimize to the level that Roller Coaster Tycoon is/was. (original system specs)

      • Wilzax@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago

        If you’re writing sloppy C code your assembly code probably won’t work either