05-08-2015, 11:00 PM
(This post was last modified: 05-08-2015, 11:02 PM by LogicParrot.)
(05-08-2015, 10:33 PM)xoft Wrote: It all depends on the AI. The vanilla AI mostly does this in a loop:
1. Stay at the same spot for a while
2. Pick a random spot in vicinity and move there
So when there are more entities, it could just make the time interval in step 1 longer.
That's exactly what OUR AI does in its current form, so that optimization works here too. We can make step 1 interval proportional to the number of mobs in the area. Also, we can make idle mobs freeze if they don't see a player for a while.
(05-08-2015, 10:33 PM)xoft Wrote: ...it could just make the time interval in step 1 longer.
Added to the optimizations to-do.