• rhabarba@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    The main problem with modern hardware is that it needs to have an abundance of resources because of sarcastic questions like this. There is no reason why memory-efficient programming should be considered outdated.

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      Yeah but pretty textures and detailed models are nice too. And maybe you want to use a scripting language for parts of the game to save a bunch kf dev time

      That’s not the same as an unoptimized game. I have games running at triple digit fps that require more memory and disk space than 10 year old me thought possible.

      Also unused memory is useless. Caching things is good.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 months ago

        Also unused memory is useless

        Unused memory means:

        • I can let updates continue in the background
        • I can open a web-browser on a second monitor
        • I can afford to buy less memory
        • I can run a server on the same computer, instead of having to buy another one to become a dedicated server
        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          I can let updates continue in the background

          That’s used memory

          I can open a web-browser on a second monitor

          That’s used memory

          I can afford to buy less memory

          But I bet you don’t, because you look at your computer say it’s all being used - when actually a lot is being used for caching and is freed upon request.

          I can run a server on the same computer, instead of having to buy another one to become a dedicated server

          That’s, again, used memory

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            3 months ago

            That’s used memory

            That’s memory not hogged by a single program, making me able to use it for other stuff.

            because you look at your computer say it’s all being used

            You’re lucky you didn’t bet any material thingy on it. I wait for the OOM killer to fire up before saying, “it’s full”.
            While I do have enough memory on my desktop, I only have 8GB on my laptop (the other 8GB one I bought, went bad early, or maybe it’s just the slot that has stopped working, it could be anything), making it hard to even use the clang tools on large projects.


            So there is this game called “Endless Sky” and its high-dpi stuff is in another separate package.
            If I install the high-dpi package on the laptop, it crashes before even completely starting, while it works perfectly well, on removing the high-dpi package.