Lag spikes when walking around

My game keeps stuttering when i create chunks on singleplayer, doesnt affect multiplayer as much. Completely ruins my singleplayer experience. DH is 2.1 , 1.20.4 using the fabulously optimised modpack aswell. This lag occurs even without DH
19 Replies
Brussel_sprouts
What's your specs
HowlingTundra48
Intel HD 520, 12GB DDR3 I7-6500U this does not occur on versions below 1.18
Brussel_sprouts
Fps spikes are expected
HowlingTundra48
this happens even on optifine i dont know how to fix this
Brussel_sprouts
It's expected
HowlingTundra48
i usually get 300 fps with this modpack on multiplayer but survival goes down to 20
Brussel_sprouts
Cpu struggles making new chunks and doing world gen Try using a pregen mod like chunky
HowlingTundra48
yeah i tried that today pregened 1000 block radius still lags when moving around
Brussel_sprouts
How much of the 12gb do you have allocated
HowlingTundra48
4gb
Brussel_sprouts
try increasing to 6
HowlingTundra48
imma give u my jvm arguments holup -Xmx4G -Xms4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M is there anything wrong here
Brussel_sprouts
Reduce the xms to 2gb and increase the xmx to 6 or 8 nothing wrong with the flags tho
HowlingTundra48
alright
Brussel_sprouts
On sodium settings enable "always defer chunk updates"
HowlingTundra48
will check it out once i get home, and let you know that feature did nothing when enabled without it istill get the stutters
Brussel_sprouts
Set the chunk update thread to only 1 Instead of default Might work?
HowlingTundra48
alr, ill check it out ive seen this happen with MANY people after 1.18, no one seems to get a fix
Brussel_sprouts
Height limit change So chunks are harder to generate More prominent in 1.18 it seems tho Or maybe cus people skipped 1.17 What launcher do you have If you can, try batch updating the mods Modrinth famously optimized?