AI-Improvements icon indicating copy to clipboard operation
AI-Improvements copied to clipboard

1.18.2 AI performance issue

Open Shybella opened this issue 3 years ago • 8 comments

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.

Shybella avatar Aug 02 '22 23:08 Shybella

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?

DarkGuardsman avatar Aug 08 '22 20:08 DarkGuardsman

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

bl4ckscor3 avatar Aug 08 '22 23:08 bl4ckscor3

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?

Shybella avatar Aug 31 '22 04:08 Shybella

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

bl4ckscor3 avatar Aug 31 '22 10:08 bl4ckscor3

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!

Shybella avatar Aug 31 '22 18:08 Shybella

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

Even better report: https://spark.lucko.me/DoQN3yxPBy

Shybella avatar Sep 03 '22 07:09 Shybella

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?

Shybella avatar Sep 04 '22 19:09 Shybella

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

DarkGuardsman avatar Sep 16 '22 14:09 DarkGuardsman