Stuttering on latest nightly + Iris&Sodium forge alpha 3
https://youtu.be/5fVlDGYnJP0
Any ideas/ways to debug?
That didn't happen before I updated to the Iris and Sodium forge alpha. Spark client and server profiles say nothing, GPU util is at 50-60%, CPU is at 40
I even got 3-5 second stutters but now they are less violent, maybe because i increased thread count
(The world is pregenerated)
14 Replies
Probably would better fit in #beta-testing
How much ram did you allocate?
8 gigs
Speaking of it, yeah, that seems like an issue, I'll try 10 or 12 now
Spark profiler doesn't show high memory usage tho
Ah, no, i allocated 10, sorry
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Let me test a bit more, I'll update after some time
You can try some more ram just to be sure that's not the issue, but yeah, in most cases 10 should be enough
The problem went away after restarting MC 🤦♂️
I will continue playing and sometime testing for a day or so
If nothing more happens I'll close the thread
Huh that's weird
I'll take it I guess
It still lags quite a bit - that's with some threading tweaking
That's with minimal impact
Those 100% peaks are the lags
I'll test some more later but i'm quite certain it's DH
With minimal impact it's just 0.3 sec stutters once in a while - i can totally play like this. It happens only when actively moving in 1 direction
With higher cpu usage presets I can freeze for 1-4 seconds
No stutters if DH is removed from the modlist 🧐
Any ideas on how i can make DH eat less of my cpu than minimal impact settings?
You can set the threading by hand in advanced settings
You can reduce it to 1 thread per task, that only runs for a 0,6 seconds every minute
Are you sure it is not GC stutter?
Try these flags:
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+UseFastUnorderedTimeStamps
Note that -XX:+ZGenerational
requires JDK 21, so if you use older one and don't want to switch, remove itI think i can't use anything besides G1GC since I'm using GraalVM
-Xmx10G -Xms10G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99 -XX:ConcGCThreads=4
Here are my params, maybe i need to change old gen stuff or smth like that?
GraalVM has some ZGC support https://github.com/oracle/graal/issues/8117
So you can in theory try ufter updating to the newest version
But you can also switch to different JDK, e.g. Zulu JDK recommended by Modrinth or Adoptium JDK