AI Improvements

AI Improvements

53M Downloads

1.18.2 AI performance issue

Shybella opened this issue ยท 8 comments

commented

Hello,

Is there any improvements that can be made here, spark profile: https://spark.lucko.me/IAuZqPU91c

AI is taking up roughly 8% of tick time.

This is with 8 players online, can you help me solve this or point in a direction?

Thank you.

commented

As far as I can tell, that seems to be correct.

commented

I might be reading it wrong but looks like 75% of the time is waiting for next tick. Meaning the server is running fine and is not experience a performance hit currently. So the 8% might be normal but lack the time to confirm. @bl4ckscor3 you want to take a look?

commented

I narrowed it down to villagers trying to navigate to their beds when trying to sleep, can aiimprovements disable villager sleeping or AI in the config?

commented

Theoretically it should be possible, but it'll take some digging as villagers use different AI to the mobs that AI Improvements already supports.

commented

Picture of villager pen that can cause this sleep issue: https://prnt.sc/30MMBjfVNLvG

Spark picture of problem: https://prnt.sc/15SMRpBYto6F

It's funny because you can see the ticks increase when the time comes for them to sleep and then goes away.

If you need anymore information, I will try my best. Thank you!

commented

Some more regarding villager POI: https://prnt.sc/usFg1I9gV0yu

Spark: https://spark.lucko.me/Pc9WqAVM1o

Is there somewhere I can contact you privately about supporting the project?

commented

We have a discord server https://discord.gg/5Dz27pEk