EnterPlayMode takes more than 5 minutes

It takes a very very long time to enter play mode. The graph type I am using is a recast graph. According to unity profiler the cause is that it is scanning on awake, but if I disable “scan on awake” the AI stops working and won’t follow the player.

Love the product so far, just hoping to get the performance issues fixed!

Hi

Scanning a recast graph can take a long time. It is mostly affected by the cell size you are using and also if you are using tiling or not (using tiling is a lot faster).

You can cache the graph so that you don’t have to recalculate it every time. See https://www.arongranberg.com/astar/docs/save-load-graphs.php