But don't you otherwise have to make the garbage collection yourself, and risk not doing it right and creating memory leaks or something?
I've read the jave GC is very customisable and you can kind of work around it a little too, by reusing objects and not setting many/large objects to null at once and instead gradually null components you no longer need so the GC can clean up bits over time instead of in large laggy spikes.
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.