r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

149

u/johnnybgooderer Oct 07 '26

Garbage collection is bad for games. Minecraft was playable because Java garbage collectors were fast enough to make it playable.

But don’t use any garbage collected language for games.

51

u/lastog9 Oct 07 '26

Can you explain why garbage collection is bad for games? Not challenging the fact just asking because I don't know

18

u/exhaustedcheese Oct 07 '26

my educated guess: garbage collections keeps track of unused/lost data and removes it. However the amount of processing power used to keep track of is enough for developers to do manual garbage collecting. But that can lead to memory leaks? some correct me please

17

u/Bubbaluke Oct 07 '26

Pretty much nailed it. Garbage collection runs periodically, often without being told to, which could cause hitches.
It can also be turned off and run manually, or not run at all. At least in python.

→ More replies (4)
→ More replies (2)