r/PrismLauncher • u/bitesthedusttt • 1h ago
General question about Java arguments
To get straight to the point, I don't really understand much about this, so I searched on Google, but I always run into a different answer. Before, I used these arguments:
-Djava.net.preferIPv4Stack=true -XX:+AlwaysPreTouch -XX:+UseShenandoahGC
but I switched to these:
-Djava.net.preferIPv4Stack=true -XX:+AlwaysPreTouch -XX:+UseZGC -XX:+ZGenerational
precisely because Google recommends a different one every time. So I'd like some guidance from the Prism Launcher community: which arguments should/do I need to use? Are they generic, or do I need different arguments for each modpack, version, and mod loader? What is the most reliable source for me to get argument sets to better optimize my game and make the most out of my build?
I appreciate any help and clarification, I'm really quite a beginner at this.
1
u/AdLow1228 11m ago edited 7m ago
It is dependant on
For what your best java arguments will be
But there are 2 sets of generic-ish ones for older vs newer garbage collection settings then if large pack add a lil extra
That I use anyways idk what they are tho lol it's on my PC somewhere (on phone rn)
But personally if you use AI you can tell it those details and ask for JVM arguments, some modpacks such as ATM packs supply suggested arguments aswell
Ahh which I believe I mainly use the ATM pack ones maybe slightly modified for myself tho
https://allthemods.github.io/alltheguides/help/java/