r/PrismLauncher • • 7h 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.

4 Upvotes

2 comments sorted by

1

u/AdLow1228 6h ago edited 6h ago

It is dependant on

  • Minecraft version
  • Java version
  • How much RAM you have to allocate
  • I think sometimes your CPU? But idk
  • Any lag issues? If not then you don't really need to bother

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/

1

u/Duox29 5h ago

google guides are almost based on akira's flag. maybe you can try meowice's flag