Distant Horizons Not Running Very Well
Hey so I have a pretty good PC (4080, AMD 7800X3D, 64 gb RAM), and distant horizons doesn't run very well in minecraft. Also, I gave minecraft 32 gb of ram to use
28 Replies
i can also send my most recent log if needed
can i get some help gang
Do you have custom GC flags? Default GC will strugle with anything above 12 GB and result in noticable stutter
Best to use generational Z GC
uh
so
what does that mean
What are your DH main settings and vanilla RD?
Do you use shaders?
What fps did you expect?
GC stands for garbate collector, it is a JAVA thing that clears up RAM during app runtime
The default one runs after a specified time passes and stops MC until it finishes
Z GC runs in the background and does not stop MC
Generational Z GC is newer better Z GC
no shaders, 16 render distance in vanilla,
is this something i can download
It is something you can change by adding custom JAVA flag in the launcher or instance settings
For Generational Z GC you need JAVA 21 which is the only thing you may need to download if you would like to use the best GC
What fps did you expect?
not really sure I just saw people running the same setting with a similar build and getting close to 200 fps and even with shaders
FPS might increase when the LOD generation finishes
Check the fps after disabling Distant generation and setting CPU load to minimum and waiting couple minutes for the setting change to apply properly
should i try this Generational Z GC first?
It won’t increase your average, only 1% lows, and decrease feelable stutter
alright ill skip that since i dont really understand it
fps is a lot better now
what do those setting change
Distant generation enables DH to generate (not load, only the first time generation!) LODs outside of your vanilla render distance without the need of exploring the chunks by hand
CPU load controls how much CPU DH uses for:
- lod generation
- lod loading
- lod updates
wow
alright thanks
Most people have Distant generation on and CPU load on agressive and increased lod RD, wait couple hours for lods to generate and then reduce DH RD and CPU load to get back some fps
It will make your game smoother but in a different way
If you don’t notice it, it is hard to explain
In a simple turn every 60 frames your game pauses for 2 frames
It is simplified explanation
With Z GC you would lose those 2 frames that the game was pause for, but it will No longer pause so the resulting image should feel smoother
oh ok
maybe ill figure out how to implement it
Google: custom Java flags in {your launcher game}
It should be next to RAM allocation slider
Or if you don’t have a slider, a flag just like the RAM flag
Just a different incantation
Reddit
From the feedthebeast community on Reddit: Minecraft Forge: JVM fla...
Explore this post and more from the feedthebeast community
found this
Those are old flags that only tune the old GC
ZGC is preatty new
And it is designed to tune itself
So the only flag you need to add it the use Z GC flag
got it
ill try to figure it out
Here is the Z GC flag:
-XX:+UseZGC
And here is the flag to make it generational (better but requires JAVA 21):
-XX:+ZGenerational
-Xmx32G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
so this is my current
You can try replacing:
-XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
With the ZGC flags
But as you already had the tuned G1 GC the improvement won’t be that big
Improvement is still and improvement 😁
You can always go back
right
thank you for your help
No problem 😸