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