lithium-fabric icon indicating copy to clipboard operation
lithium-fabric copied to clipboard

TPS Spikes

Open Squidistry opened this issue 1 year ago • 4 comments


Version Information

lithium-fabric-mc1.20.1-0.11.2 Causing tps spikes above 1300

Actual Behavior

Caused tps to spike

Reproduction Steps

Install Lithium

Other Information

https://spark.lucko.me/1blXmWAwU1 PalettedContainer.serialize() causing it to spike

Squidistry avatar Jun 15 '24 01:06 Squidistry

Maybe try adding the line mixin.chunk.serialization=false to the lithium.properties in the config folder and test again

2No2Name avatar Jun 16 '24 00:06 2No2Name

I had the same TPS spike yesterday on 1.21, it too got down to PalettedContainer.serialize(), it's hard to re-produce since it appears to only occur for me after an hour or two (or a lot of chunk loading).

Libreh avatar Jul 30 '24 11:07 Libreh

It is worth mentioning that chunk serialization is slow and the time it takes depends on how complex the chunks are. That means, if they have more mobs or block entities, the server will need more time to save them. And the more chunks the server is waiting on to save, the longer the spikes will become as it tries to work through the backlog.

jellysquid3 avatar Jul 30 '24 17:07 jellysquid3

I don't remember getting this before 1.21 though, it's weird. I remember playing 1.20.4 with 20 chunks just like I do now and I wouldn't get this. It still happens with mixin.chunk.serialization=false.

Libreh avatar Aug 02 '24 20:08 Libreh