this post was submitted on 24 May 2025
467 points (97.0% liked)

Games

38885 readers
895 users here now

Welcome to the largest gaming community on Lemmy! Discussion for all kinds of games. Video games, tabletop games, card games etc.

Rules

  1. Submissions have to be related to games

  2. No bigotry or harassment, be civil

  3. No excessive self-promotion

  4. Stay on-topic; no memes, funny videos, giveaways, reposts, or low-effort posts

  5. Mark Spoilers and NSFW

  6. No linking to piracy

Authorized Regular Threads

Related communities

Video games

Generic

Help and suggestions

Platform specific

Game specific

Language specific

Others

PM a mod to add your own

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] SorteKanin@feddit.dk 4 points 1 week ago (1 children)

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 7 points 1 week ago* (last edited 1 week ago) (1 children)

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

[–] shoo@lemmy.world 2 points 6 days ago

That's kind of a funny example because, on a quick skim, nothing he did was exceptionally clever or unusual (other than workarounds for not having source code). R* basically paid him 10k for some basic profiling that they never bothered to do.