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.
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 20 hours 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 4 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.