Multiple seekers requesting paths at the same time

Hello there,

I seem to be having issues with multiple seekers in a scene.
I instantiate some AI at run time and sometimes, since they are randomly placed, they sometimes request a path at the same time and it looks like this is not something the pathfinder likes a lot. When that happens, i get many of the following message:
Canceled path because a new one was requested. This happens when a new path is requested from the seeker when one was already being calculated. For example if a unit got a new order, you might request a new path directly instead of waiting for the now invalid path to be calculated. Which is probably what you want. If you are getting this a lot, you might want to consider how you are scheduling path requests.
Coupled with some of these:
Path Failed : Computation Time 0.00 ms Searched Nodes 0 Error: Canceled path because a new one was requested. This happens when a new path is requested from the seeker when one was already being calculated. For example if a unit got a new order, you might request a new path directly instead of waiting for the now invalid path to be calculated. Which is probably what you want. If you are getting this a lot, you might want to consider how you are scheduling path requests.

I am unsure what to do about this.

Thanks!

Same Problem here. Have you found a solution for it?

Hi

This is because a single AI (not related to having multiple AIs in the same scene) is requesting a new path before the previous one that it requested was fully calculated, so it will abort the previous path (since that is likely not very relevant anymore) and start to calculate the new one.
I would suggest that before you request a path, you check the seeker.IsDone () method and only request the path if that is true, then it will have enough time to calculate the previous path completely before you start a new path.