Alex's Mobs

Alex's Mobs

72M Downloads

Elephant CreatureAITargetItems goal using way too much tick time

Mysteryem opened this issue ยท 2 comments

commented

Using Minecraft 1.16.5, Forge 36.1.4 and Alex's Mobs 1.10.1 I'm noticing a considerable amount of tick time being spent on elephants, specifically their CreatureAITargetItems goal.

Here's a profile of all ticks that I did with Spark with 13 elephants loaded on the server (I killed them all with /kill afterwards) https://spark.lucko.me/T6KVocW2eh

As the server was pretty idle (just myself online, no chunkloaded machines from other mods), it was keeping 20tps most of the time and idle for a good amount of time in the profile. Of the 298,344ms spent on net.minecraft.world.World.guardEntityTick(), com.github.alexthe666.alexsmobs.entity.EntityElephant.tick() took 211,152ms (about 71%), the next worst entity being net.minecraft.entity.monster.ZombieEntity.tick() which took 8,036ms (about 3%).

I have taken an excerpt of the profiler results as I don't know how long they are kept for before being deleted: https://gist.github.com/Mysteryem/6e9a8726585019d934ba2cc57d972c47

commented

Having the same issue on singleplayer. https://spark.lucko.me/qebfm0RDU3
This has never happened before. All the mobs in my world are stuttering. (EDIT: The lag appears to have gone away, but it may come back.)

Actually, this seems to be a duplicate of #193 which was closed with a commit. It might be an idea to reopen...

commented

I believe I'm seeing the same behavior. https://spark.lucko.me/7MRtUWSgCE