stuttering every few ticks

i'm trying to make a kitchen sink modpack, and noticed severe stutters every few ticks. after using spark to profile ticks that took over 500ms this is what i got - any ideas why it takes so long? (5844ms!!!)
No description
Solution:
i don't know how much the flags changed if anything, but removing Every Compat which adds a ton of blocks helped a lot
Modrinth
Every Compat (Wood Good) - Minecraft Mod
Universal Wood Compat: Quark, Twilight Forest, Twigs, Another Furniture, Farmers Delight, Macaw's, Valhelsia, Architects Palette, Deco Blocks, Crayfish FM
Jump to solution
17 Replies
maciek
maciek2w ago
my modlist
MarijnIsN00B
MarijnIsN00B2w ago
Did you try lowering the CPU load in DHs config?
maciek
maciek2w ago
while lowering it to minimal does help, it makes lods take way too long to update cpu load really shouldn't be an issue as i have an r9 7950x3d and it still stutters, just way less often which i assume is because lowering cpu load makes the function run less often
Miki_P98
Miki_P982w ago
I don't know how profilers take GC to the account but without the profiler info I would say it is a ram problem what are your GC flags and how much RAM did you allocate to MC?
maciek
maciek2w ago
16GB, and as for the flags i didn't touch anything so default for prism launcher i removed a mod that added a lot of blocks and it seems to have helped somewhat
Miki_P98
Miki_P982w ago
16 GB in your PC, or 16 GB for MC?
maciek
maciek2w ago
16gb for mc
Miki_P98
Miki_P982w ago
It very mych can be a GC problem then reduce it to 12 GB And install mod Ferritecore
maciek
maciek2w ago
i already have ferritecore installed, will try reducing ram in a moment
maciek
maciek2w ago
but before i do here's a screenshot of the profiler after removing that mod
No description
Miki_P98
Miki_P982w ago
no matter the result you can try adding -XX:+UseZGC flag
maciek
maciek2w ago
it's down to ~800ms
Miki_P98
Miki_P982w ago
and removing everything with G1 in the name -XX:+ZGenerational flag might also help, but it is only avaiable for JAVA 21, and by default 1.20.X runs on JAVA 17 so you would need to change that
maciek
maciek2w ago
i'm running java 22 prism launcher doesn't display default flags, it's unlikely there aren't any so i assume they are just hidden :(
maciek
maciek2w ago
so this field is empty by default
No description
Solution
maciek
maciek2w ago
i don't know how much the flags changed if anything, but removing Every Compat which adds a ton of blocks helped a lot
Modrinth
Every Compat (Wood Good) - Minecraft Mod
Universal Wood Compat: Quark, Twilight Forest, Twigs, Another Furniture, Farmers Delight, Macaw's, Valhelsia, Architects Palette, Deco Blocks, Crayfish FM
Miki_P98
Miki_P982w ago
👍