For some reason distant horizons stopped running well
I was running a few performance mods + Distant Horizons,
then i installed a ton of other mods and the game was ruined.
Now i have uninstalled all of them besides the few performance mods (sodium lithium etc.) and the game runs fine until i install distant horizons and it becomes a stuttering mess.
31 Replies
running a steady 20fps right now, without distant horizons i easily get 400fps even with shaders enabled
.
it’s like it’s getting worse lol
Dude
You allocated 16 gb
What's your dh settings
Install immediatelyfast, modernfix, ferritecore
It should fix some memory allocation
And also
Make Minecraft use jdk 21
Go search up a tutorial on how to do it, idk, it depends on the launcher you use
Then add a jvm flag for zgc
-XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysActAsServerClassMachine -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:+UseZGC XX:+ZGenerational -XX:AllocatePrefetchStyle=1 -XX:-ZProactive
Should work
I just took that from brucethemoose Minecraft flag optimization github page
And added generational
where do you paste this?
Jvm arguments
On the Minecraft installation setting idk
Depends on launcher
I never used the default Minecraft launcher
do you replace whats there or just add it to the end
Replace
thanks
ill try it
You need jdk 21 tho
Generational zgc isn't compatible for anything below
explain this to me like im stupid
Basically Minecraft runs on the jvm, which is taken from the jdk, generational zgc is incompatible with any jdk version that isn't 21 and above
Because generational got added in 21
You can also just remove the generation tag
Generational tag
And it should just still work
But on a weaker scale
1ms to 10ms
hmmm
Generational is 10x faster in some cases
interesting
youd think stuff like this would be default lmao
Zgc requires high core counts and ram
my cpu isnt bad but my ram def bottlenecks on my setup
But with them making the jvm required to be 64 bit
You'd think they'd make zgc default already
And just make a setting to make it g1gc
(the old garbage collector)
(the default one)
(and also the one that stutters when you allocate above 8gb)
do you know if adoptium's a good choice or
Good choice
Almost basically every jvm is the same, just with minor performance boosts and gc support
Azul zulu jdk and adoptium are usually the safer options
noted
There are some like graalvm which have a more aggressive compiler
But only supports g1gc
i should get jdk over jre im assuming
Yes
Download zip
And just unzip it when it's down
ight ill be back in 4 hours when my poverty internet is done with this 200mb
thx
Done*
There's also a setting in the Minecraft instance thingy to use a custom java installation
Make sure it's using the javaw.exe on the folder of the java install
i appreciate your help
yo @Brussel_sprouts
not working even with jdk 21
Remove generational
Java might be running on java 17 compatibility mode
Specifically versions before 1.20.5/6 don't use jdk 21
I figured it out
you forgot a - lol
infront of the xx:
works fine now sry for bothering you
Oh yeah
Is okay