A* path finding lags when I increase no. of objects following target

A* path finding slows down when I increase the no. of objects following my target. When I change the position of my target, objects following my target do not re-path accordingly .They still follow the old path. But when I decrease the no. of objects i.e 2 or 3 it works fine.


This is likely because the pathfinding system is overloaded.
Make sure that you are using multithreading (A* Inspector -> Settings -> Pathfinding) as that will give you a significant speed boost.

Hey Aron!
I have already tried that. But I think as I’m using free version so it’s not allowing me for more than one threads.


Ok. Have you used the profiler to check what is actually slowing the game down?