r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

Show parent comment

2

u/Laughing_Orange Oct 07 '26

Garbage collection puts a huge load on RAM at random intervals, when removing the garbage. For users, this means lag spikes. 90% of the time when Minecraft is lagging, it is related to garbage collection.

The main advantage of garbage collection is that the developer doesn't have to think about removing unused RAM or running out of RAM. They can simply set a limit, and the language itself keeps RAM usage below this.

1

u/Ok-Scheme-913 Oct 09 '26

Not really true of moving garbage collectors.

In java's case you just rescue the objects that are still reachable by moving those to another "bucket" , and then simply "say" that the old bucket is garbage and can be freshly reused. It's more of a principle that you DONT touch garbage.

1

u/Obmanuti Oct 09 '26

Am I the only person who see hitching when entering a new chunk which to me would indicate a rendering or procedural generation related delay?