I have a Recast graph which is approximately 3sqkm. A bit less than half of this area is procedurally generated, and so I need for the graph to be rescanned at runtime.
The generation tool defines it’s area with a series of points, which seems to tie in perfectly with the ‘GraphUpdateShape’. The exact area of the shape is around 1sqkm.
With only the terrain in the scene, scanning using the GraphUpdateShape (
AstarPath.active.UpdateGraphs(guo);) takes a very long time. I didn’t let it finish, but had passed well over 40 minutes.
On the other hand, if I simply click ‘Scan’ in the editor, after the procedural terrain has generated, I would assume it is doing more work (as it’s the full graph area, not just the shape). It completes however, in less than 3 minutes.
Should I be using a different method to scan the mesh in this situation? Are there any things I can do to increase the speed?