Friends & Foes (Fabric/Quilt) (Copper Golem,Glare,Crab,Moobloom,Iceologer,Rascal,Tuff Golem,Wildfire,Illusioner)

Glares are using about 20% of the tick time

Xstoudi opened this issue ยท 2 comments

commented

Minecraft version information

1.19.2

Mod loader information

Forge

Mod loader version information

43.1.7

Mod version information

1.5.11

Expected Behavior

Glares shouldn't eat up the tick.

Actual Behavior

Glares' pathfinding takes about 20% of a tick time when loaded.
You can see in the attached flamegraph, GlareEntity.tick takes about 20% of tick times. Most of it is due to intensive calling of the nm.world.level.pathfinder.WalkNodeEvaluator.checkNeighbourBlocks().

Reproduction Steps

  1. Boot a server and spawn some glares.
  2. When Glares are loaded, TPS drop down.

Screenshots & files

https://spark.lucko.me/GiiivWKKQE

image

commented

Please do upgrade to 1.19.2-1.6.8(https://github.com/Faboslav/friends-and-foes/releases/tag/mc1.19.2-1.6.8) version and then let me know if the problem persists.

commented

Closing due to inactivity, feel free to reopen the issue if problem persists.