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

Glare is causing a lot of Ticks

SirSebi opened this issue ยท 6 comments

commented

Minecraft version information

1.18.2

Mod loader information

Forge

Mod loader version information

40.1.80

Mod version information

1.4.5

Expected Behavior

I was searching for tps problems on our server. We only have 2 Tamed glares at our world. After a Spark profiler i got to know, that the two Glares are using 8% of the whole tick ( all Zombies at night time need 2% ticks)

Actual Behavior

tick consuming should be not as high as that

Reproduction Steps

tame a glare

Screenshots & files

No response

commented

Hello, sadly i can not do anything for you, pathfinding in caves is just too complex and resources consuming, i already optimized few things in the newer versions of the mod, but i do not have a time to do these kind of backports, and it would be probably little help anyway. I am sorry.

Update: also it is really hard to reproduce for me, because i do all the testing on my m1 macbook and also on the solid dedicated server. So there is not any tick lag even with 100-200 glares spawned at once due to high-end CPU.

commented

Can't you disable the pathfinding if the glare is on nonfollow mode? Or if he is on a latch? Would be a nice workaround I guess

commented

I will check it, but i think it is already done like that.

commented

I checked the code and there is already condition for leash. For nonfollow mode, that is not a feature from this mode.

commented

@SirSebi I will close this, as i am not touching 1.18.2 again, for that i am sorry. But i will try to look at this little bit more for the 1.19.2 version.