how to fix stutter
Ive tried allocating loads of ram or very little and many performance mods but nothing fixes the stutter, it got worse when i updated to the "better" version of dh. How can i get the older version back because the new version is horrible
Solution:Jump to solution
Everything apart from the
-Xmx2G
which you replace with -Xmx{RAM allocation amount}G
32 Replies
nightly builds suck too
All releases are available on Modrinth and CurseForge to download if you really want to go back to an older DH versions
What GC/JVM flags do you use?
What are those
Tuning/setting flags that tune the GC/JVM to reduce stutter caused by high memory usage/allocation
Try one of these: https://discord.com/channels/881614130614767666/1304910897658986570/1305234534492803165
I don't even know where that is though
where do i put it
Depends on your launcher
its the new one
aka the bad one
Vanilla?
In Modrinth here
I need to check, give me a minute
Minecraft Java Edition -> Installations -> {3 dots on the right of the installation} -> edit -> more options -> {JVM arguments field}
where should i paste it exactly also how much ram do i allocate
or do i remove everything in the box and paste it
How much do you have in your PC?
32gb ddr5
i have 14gb allocated now
Solution
Everything apart from the
-Xmx2G
which you replace with -Xmx{RAM allocation amount}G
Should be fine, you can even go a bit lower to 12 or even 8
so this?
it gets more stuttery
You are lacking a space between first 2 flags
Apart from that seems correct
is that how its supposed to be
Looks correct
ill try it
it fixes stutter alot
just one question tho
is it supposed to fill memory all the way to 100% before resetting
That is how JAVA GC works, it would be best if it did not do that, but it isn't really achievable in an easy way
is 14gb ram good for it
You would need to modify the flags more to tune it for your specific system
because then it doesnt have to do garbage collection so often
If you add more RAM, the big garbage collection will be less often but will create a larger stutter as it will have to clear more RAM
If you add less RAM, the big garbage collection will be executd more often, but it itself will be smaller
The RAM usage between the big clears should average between 60 and 80%
i dont get stutters when it clear the garbage on 14gb
it starts going up from 20% and climbs to 100% but hopefully no stutters
if i do get stutters what should i do though
Try another flag set from the collection I've sent
If non of them will work good enough you can google what each of the flags do and create an optimized flag set for your PC
You can also:
- decrease the RAM allocation to make the stutter smaller but more frequent
- increase the RAM allocation to make the stutter bigger but less frequent
thank you so much bro this even works on my weak ah laptop running 32 chunks