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.
No description
31 Replies
Late Night Nut
running a steady 20fps right now, without distant horizons i easily get 400fps even with shaders enabled
Late Night Nut
.
No description
Late Night Nut
it’s like it’s getting worse lol
Brussel_sprouts
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
code
code2w ago
where do you paste this?
Brussel_sprouts
Jvm arguments On the Minecraft installation setting idk Depends on launcher I never used the default Minecraft launcher
code
code2w ago
do you replace whats there or just add it to the end
Brussel_sprouts
Replace
code
code2w ago
thanks ill try it
Brussel_sprouts
You need jdk 21 tho Generational zgc isn't compatible for anything below
code
code2w ago
explain this to me like im stupid
Brussel_sprouts
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
code
code2w ago
hmmm
Brussel_sprouts
Generational is 10x faster in some cases
code
code2w ago
interesting youd think stuff like this would be default lmao
Brussel_sprouts
Zgc requires high core counts and ram
code
code2w ago
my cpu isnt bad but my ram def bottlenecks on my setup
Brussel_sprouts
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)
code
code2w ago
do you know if adoptium's a good choice or
Brussel_sprouts
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
code
code2w ago
noted
Brussel_sprouts
There are some like graalvm which have a more aggressive compiler But only supports g1gc
code
code2w ago
i should get jdk over jre im assuming
Brussel_sprouts
Yes Download zip And just unzip it when it's down
code
code2w ago
ight ill be back in 4 hours when my poverty internet is done with this 200mb thx
Brussel_sprouts
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
code
code2w ago
i appreciate your help yo @Brussel_sprouts
code
code2w ago
not working even with jdk 21
No description
Brussel_sprouts
Remove generational Java might be running on java 17 compatibility mode Specifically versions before 1.20.5/6 don't use jdk 21
code
code2w ago
I figured it out you forgot a - lol infront of the xx: works fine now sry for bothering you
Brussel_sprouts
Oh yeah Is okay