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:
Everything apart from the -Xmx2G which you replace with -Xmx{RAM allocation amount}G
Jump to solution
32 Replies
Rio
RioOP4w ago
nightly builds suck too
Miki_P98
Miki_P984w ago
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?
Rio
RioOP4w ago
What are those
Miki_P98
Miki_P984w ago
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
Rio
RioOP4w ago
I don't even know where that is though where do i put it
Miki_P98
Miki_P984w ago
Depends on your launcher
Rio
RioOP4w ago
its the new one aka the bad one
Miki_P98
Miki_P984w ago
Vanilla?
Miki_P98
Miki_P984w ago
In Modrinth here
No description
Rio
RioOP4w ago
No description
Miki_P98
Miki_P984w ago
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}
Rio
RioOP4w ago
where should i paste it exactly also how much ram do i allocate or do i remove everything in the box and paste it
Miki_P98
Miki_P984w ago
How much do you have in your PC?
Rio
RioOP4w ago
32gb ddr5 i have 14gb allocated now
Solution
Miki_P98
Miki_P984w ago
Everything apart from the -Xmx2G which you replace with -Xmx{RAM allocation amount}G
Miki_P98
Miki_P984w ago
Should be fine, you can even go a bit lower to 12 or even 8
Rio
RioOP4w ago
so this?
No description
Rio
RioOP4w ago
it gets more stuttery
Miki_P98
Miki_P984w ago
You are lacking a space between first 2 flags Apart from that seems correct
Rio
RioOP4w ago
No description
Rio
RioOP4w ago
is that how its supposed to be
Miki_P98
Miki_P984w ago
Looks correct
Rio
RioOP4w ago
ill try it it fixes stutter alot just one question tho is it supposed to fill memory all the way to 100% before resetting
Miki_P98
Miki_P984w ago
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
Rio
RioOP4w ago
is 14gb ram good for it
Miki_P98
Miki_P984w ago
You would need to modify the flags more to tune it for your specific system
Rio
RioOP4w ago
because then it doesnt have to do garbage collection so often
Miki_P98
Miki_P984w ago
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%
Rio
RioOP4w ago
i dont get stutters when it clear the garbage on 14gb
Rio
RioOP4w ago
it starts going up from 20% and climbs to 100% but hopefully no stutters if i do get stutters what should i do though
Miki_P98
Miki_P984w ago
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
Rio
RioOP3w ago
thank you so much bro this even works on my weak ah laptop running 32 chunks

Did you find this page helpful?