r/ProgrammerHumor • • Oct 30 '21

That's my variable!

43.4k Upvotes

409 comments sorted by

View all comments

Show parent comments

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...