Well…just because it was made in Java does not mean it’s good. Minecraft runs like a POS if we’re being honest here, and that is mostly because of Java quirks with garbage collection afaik
Ok let’s collect all those modification things and call them BONTO. I agree, BONTO runs great and is fun but probably could have been better if it wasn’t written in Java because some of what’s in BONTO is Java workarounds. But also some of BONTO is fixing decisions from BONTO’s original author. But I’m glad BONTO exists because if it was lua and C++ I’m not sure BONTO would have AE2.
Still runs into garbage collection problems at higher levels of RAM and is unplayable at lower values though, like there are two RAM things that drive me crazy.
First, Minecraft should not require more than 4GB of RAM to look good and run at a constant 60fps with no stuttering
Second, the way Java garbage collection works, it sweeps your entire memory any time it cleans up. So if you allocate 16+ GB of RAM it can be detrimental to the game’s FPS, which again just drives me crazy
You clearly haven't dealt or interacted with Java in the past like 15+ years if "sweeping the entire memory any time it cleans up" is still how you would describe java garbage collection. First of all, there is no "the garbage collector". There is a default (g1gc), but it comes with multiple options optimized for different usecases. ZGC for example is a popular choice for minecraft because it is optimized for real time applications and minimized pause times, especially since generational zgc was introduced in Java 21. None of the two mentioned examples simply "sweep your entire ram".
I mean it just takes a quick google search to confirm, did you try that? It looks like it creates a CPU bottleneck if you have too much RAM.
And it’s not rocket science to think that if you allocate more RAM to run the game, the JVM will have to clean more things up each time garbage collection runs?
It takes a quick google search to confirm that garbage collection does not just blindly sweep the entire ram and that generational zgc was specifically introduced to minimize pause times on high ram allocations, yes. And unless you get into very heavy modding or are running a large server, minecraft does not nearly require enough allocated ram to make even the default g1gc an issue. Generational zgc starts outperforming g1gc at around 12-16gb iirc. That is way more than vanilla or even many modpacks need.
Well you don't need 16+gb to push vanilla to its max. There is no reason for it. It'll work fine on 8. But even if high ram allocations are necessary, switching to a different gc can mitigate the issue. That's all I'm saying. Sorry if my very first sentence sounded condescending, I do admit that that can sound kinda rude in text form without any tone. Bad wording on my part. Was trying to say that what you were saying was a real issue way back in the day but has since been improved a lot.
View all comments
2
u/Terrariant Oct 07 '26
Well…just because it was made in Java does not mean it’s good. Minecraft runs like a POS if we’re being honest here, and that is mostly because of Java quirks with garbage collection afaik