• SorteKanin@feddit.dk
    link
    fedilink
    English
    arrow-up
    2
    ·
    13 hours ago

    Tbf memory leaks can be very hard to diagnose and can also be hard to avoid in any software written in a language like C++, which is probably what Diablo 4 is written in.

    • mriswith@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      12 hours ago

      In large scale online games you have issues ranging from obscure things causing memory leaks based on drivers, hardware combinations, etc. and all the way to basic things getting overlooked. One of my favorite examples being GTA5 online.

      They forgot to update a function from early testing, and it was in the game for about a decade before someone else debugged the launch process. And then realized that it was going through the entire comparison file for each item it checked on the local list. So “changing a few lines” ended up reducing initial load times by up to 70% depending on the cpu and storage media.

      EDIT: I’ve been drinking and probably misreemebred parts, so here is the post about how he found the issue