Excessive class method Entity.isInWaterRainOrBubble() calls impacting tick rate
Paulie820 opened this issue ยท 0 comments
Describe the bug
With Buildify installed, calls to the class method Entity.isInWaterRainOrBubble() are made. The calls can grow to be excessive impacting server performance and causing high mspt. See the attached spark log.
https://spark.lucko.me/a2z2m0AFdh
The same server was run with Buildify (and it's dependent in Caliber Mod) removed, seeing an immediate improvement from the lack of Entity.isInWaterRainOrBubble() calls. See the attached spark log
https://spark.lucko.me/tZrQtlZkWs
To Reproduce
Steps to reproduce the behavior:
- Install Buildify
- Run game world
- With just the Caliber set installed, this does not cause major performance issues, even when lightly modding. On larger packs is where the issue becomes apparent.
Expected behavior
Normal TPS
Additional context
This may be also related to world height. I used this mod in a roughly 300 mod pack with no issues on a world with an 800 block world height. When I switched to a world with a 1500 block height and that same set of mods, the tick rate issue began.
Testing with the same world height and a reduced modpack size, there are no tick rate issues. If any specific information is needed, please let me know as I would love to reintegrate caliber back into the pack.