Lag Spikes
BigHit3 opened this issue ยท 1 comments
This mod causes Lag Spikes (Also tried with only embedium installed, same result). Any suggestions?
Here some Spark results:
https://spark.lucko.me/90jNkaAHYX
Still looking for some way to mitigate lag spikes. Here in comparison 2 Spark results:
1.) Just Vanilla minecraft https://spark.lucko.me/zolhVlEo0x
2.) Vanilla + Weather mod https://spark.lucko.me/GVe8pGmg29
One can clearly see an increase in "net.minecraft.client.server.IntegratedServer.tickServer" and the cause being Weather mod (24 ticks with 27% due to weather mod)
The result varies quite much from test to test, but the pattern is clear. Weather mod causes lag spikes, especially the more mods are installed. (even performance mods don't mitigate this effect). Here some more spark tests:
3) https://spark.lucko.me/2mSpFXbZsZ
- Embedium
- Oculus (complementary reimagined with potato settings)
- physicsmod (only block destruction particles and ragdoll enabled)
In this case we got 14 ticks over 100ms with 56% of it caused due to weather mod, which is quite noticeable during playing
P.S. I could configure Spark to let ony, let's say, 500ms instead of 100ms to pass (since during each suck luck ticks often last up to 1000 ms), and the correlation with the Weather mod would be even more obvious, but it is what it is
4.) https://spark.lucko.me/svTCBuXAdG
- Embedium
- Oculus (complementary reimagined with potato settings)
- Physicsmod (only block destruction particles and ragdoll enabled)
- Tectonic
- Terralith
- William Wythers' Expanded Ecosphere
- Continents
- Terrablender
Here i configured Spark to pass only ticks that last over 500ms. This time i got only 2 ticks, but each 500ms+ with Weather mod being the cause of it with it's 98%.
5.) https://spark.lucko.me/MGcAxgGlX4
Here for comparison a test with numerous different mods (exact list can be seen on spark page itself), 2x 150ms lag spikes under more or less the same circumstances is not even noticeable during playing in comparison to numerous ~100ms+ (in practice around 350ms) lag spikes and a few ~500ms (in practiec around 800ms)+ lag spikes with Weather mod. By the way here are used the same mods as in the spark test in a comment above, just without weather mod. Difference is quite noticeable, 2 ticks over 100ms vs 24 ticks over 150ms, it's 1200% increase in lag spikes.
Lags seem to occur due to method calls related to chunk and height processing (getChunk, getHeight, getPrecipitationHeightSafe)
If some ifx/optimizations isn't to be expected, is there at least a way to disable a corresponding part of the mods? Even just Falling Leaves and Wind feature while and disabling Storm part would suffice for me. By the way, I also tried tweaking the config file: simplified/vanilla mode, fewer ticks and particles... same results.
Here some extra spark results not included in main part, again lag spikes due to Weather mod can be seen:
https://spark.lucko.me/A1JuQ9V4Yv
https://spark.lucko.me/OImXqQV4QP
https://spark.lucko.me/mRZbdkQsj1