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.
Diablo4 has memory leak issues. As a software engineer myself, I just don’t see any excuse for a game this long in production to have memory leak problems.
There is no doubt that a lot of games are getting rushed without being properly tested.
SorteKanin@feddit.dk 1 day ago
mriswith@lemmy.world 1 day ago
You are both correct in a way.
In large scale online games you have issues ranging from obscure things causing memory leaks, 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 loading an entire file every time it checked a local item list against the online one. Changing “basically one line” ended up reducing initial load times by up to 70% depending on the cpu and storage media.
shoo@lemmy.world 8 hours 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.
digitalnuisance@infosec.pub 8 hours ago
gamedev be like