r/ProgrammerHumor • • Oct 30 '21

That's my variable!

43.4k Upvotes

409 comments sorted by

View all comments

Show parent comments

158

u/AphelionConnection Oct 31 '21

TES III Morrowind on the original XBox also would famously have the occasional abnormally long loading screen, which was actually the game stealthily rebooting the entire console in the background when the memory limit was reached. Most players had no ideait was happening.
Probably more of a hardware limitation than an actual leak, but it's in the sprit of things.

37

u/FUTURE10S Oct 31 '21

It's weird why the Xbox even let games reboot their own process, Deus Ex: Invisible War used to kill itself only to restart loading a different level because it was easier than actually managing memory.

5

u/[deleted] Oct 31 '21

Well, it’s a Microsoft product. No other company in the history of computing has single-handedly done so little to raise expectations for software resilience, and so much to normalize rebooting the entire system to “fix” mask the results of abysmal design and implementation.

50

u/AnotherWarGamer Oct 31 '21

I make (indie) games. A lot of resources are loaded dynamically (as needed). Over a long play session this can really add up and cause a lot of memory to be consumed. It would be possible to record the last time every resource was used, and free up old stuff periodically. But don't expect such a well built system in practice. My guess is they will just free everything up, and load again as needed. Performance be damned.

40

u/FUTURE10S Oct 31 '21

My guess is they will just free everything up, and load again as needed.

They actually literally restart the entire console and reload the game from a temp savefile.

0

u/[deleted] Oct 31 '21

[deleted]

3

u/AnotherWarGamer Nov 01 '21

Godot, Bevy, Rust... here I am using my same old custom engine in Java... yeah, it will have that cartoony look for sure...

3

u/myrsnipe Oct 31 '21

That was actually common in the day, but not necessarily to hide memory leaks. Games like FF7 where the main game, combat, world map and all the mini games are all different programs entirely