FPS Drops from 200 to 30 every 10 seconds in The End Boss Fight
Minecraft 1.21.1 | Fabric 0.16.14
I've tried everything to prevent this from happening, but it always does. I currently have 8GB of RAM allocated and tried with 16GB, but the exact same thing occurs.
My GPU isn't throttling and neither is the CPU.
I've tested different shaders (BSL, Complementary, Solas, and Photon), and it happens with all of them.
The issue doesn't occur in the Overworld (even in bamboo jungles during thunderstorms) or in the Nether.
Mods:
BadOptimizations
Cloth Config v15
Clumps
Concurrent Chunk Management Engine
Debugify
Distant Horizons
Dynamic FPS
Enhanced Block Entities
EntityCulling
Fabric API
Fabric Language Kotlin
Faster Random
FerriteCore
ImmediatelyFast
Iris
Krypton
Lithium
ModernFix
More Culling
Noisium
Reese's Sodium Options
ScalableLux
Sodium
Sodium Extra
ThreadTweak
YetAnotherConfigLib
Zoomify
48 Replies
DH Settings:
Quality Preset - 5. Extreme
Disabling DH fixes FPS drops.
1. FPS Drop w/DH | 2. Normal w/DH


What CPU preset you're running?
Balanced
Every 10 seconds you say? Can you get a screenshot of the frame-time graph? Enable it by pressing F3 + 2.
Sure

Ew, what is going on with the chunk graph?
I really don't know, I thought it was a problem with other mods but it only happens when using DH and if I deactivate it everything goes back to normal. π
Try loading up a nightly version from #links-n-downloads, see if that changes anything.
I'll let you know, thanks for your response!
The same thing is happening

Bamboo Jungle + Thunder - No FPS Drops

The End - FPS Drops

Very interesting.
That's the smallest End island I've ever seen. Anyways, from what I can tell, the frame rate seems to drop when Distant Horizons is doing work. Could it be the case in your situation?

I think so, but i dont think that is the intended behavior.
From 200 FPS to 30 FPS every 10 seconds is so bad.
Wait, i'll try without Shaders
The end dimension contains a lot of voids. In between those, there's little work to be done compared to the overworld or the nether.
I haven't tested how Distant Horizons operates in the end, so I can't say for sure if this is intended behavior myself.
There are still frame drops, but now they only go down to 80 FPS instead of dropping all the way down to 30 FPS from 240 FPS.

I think it's a memory leak or something like that because now that I'm sending you the evidence, my computer feels too slow when Minecraft is in the background.
Uh, Minecraft slowing down the computer in the background has always been a thing since forever.
looking at the screenshots again, I think it is clear that it is a memory leak, in the overworld and nether the memory stays at 40-60% and in the end it reaches 80-100%.
I'll leave this for the devs to chime in.
Sure, I'll keep seeing if I can notice any difference between the captures using F3.
This will be the last screenshot - take it during the FPS drop.


!binary
Try a binary search and figure out which mod is causing it.
So disable half of the mods, see if issue is still there, if yes disable half again etc etc until you find the mod that's causing the issue.
You don't have a lot of mods, should be quick
The only mod in your list I haven't used with DH yet is threadtweak
As you have only 2GB used and JAVA isnβt crashing so memory leak is very unlikely
My first thought would be the GC(maybe try some jvm flags), don't know if that helps though.
Disabled every mod except DH, the same is happening.

The same happens using the Dev version that is in GitLab.

@Miki_P98 Sorry for the ping but here you can see that the RAM goes to 80%+ when I have the FPS drop, with 8GB of memory allocation on the Overworld or Nether it never goes beyond 40-50%.
So it goes to 80%+ freezes and goes back to less then 50%?
DH will use RAM, depending on the CPU load preset, if distant generation and the CPU itself, it can use very little or a lot
GC (RAM) clearing will always stutter with default JVM configuration, you can add custom GC/JVM tuning flags in order to reduce the stuttering (with slight permanent fps drop)
Try using on of these flag sets: https://discord.com/channels/881614130614767666/1304910897658986570/1305234534492803165
Seems worse.


Then try the next set
How much RAM does your PC have?
Try increasing the RAM amount to 12 GB alongside the flags
Do all this on the latest nightly DH version
I have 32GB RAM DDR5
Lemme try with 12GB


No idea
Well, thanks for your time π
I'll wait to see if a dev can check it out.
Can I ping a dev?
Worse case scenario they will just ignore it
Jack mainly develops the plugin
Pshpsh the server side part of the mod
James is the main dev
All 3 should have general knowledge and be able to debug code
@BackSun Helpers gave me possible solutions, We tried everything but none of them worked, could you check it when you have time please, thank you in advance!
There appears to be a quirk with how the LZMA compressor works that can cause lag for extremely fast world gen.
The end generates significantly faster than the overworld/nether so the issue only appears there.
I've pushed a fix that should significantly reduce the problem but doesn't appear to solve it completely (should be ready to download from #links-n-downloads in about an hour or so).
To completely solve the problem use the LZ4 compressor instead (at the cost of larger file sizes).
LZ4 is sadly quite a lot larger than LZMA2 though
Thank you, I will let you know if the problem has improved and by how much when the next version is released.
And yes, using LZ4 instead of LZMA2 solves the problem.
@BackSun Sorry for the ping, I have tested the new Dev version and the problem is not 100% fixed but the FPS drops went from 30-40 to 80-100, much more stable, thanks for that and I hope it can be completely fixed in the future, have a great day!