Creating a Recast Graph Tile by Tile

Hi

  1. You can use a regular graph update (see http://arongranberg.com/astar/docs/graph-updates.php) with updatePhysics=true to make a recast graph recalculate a particular tile (or a group of tiles).

You can make the graph completely empty when you first scan it by making sure that the graph.scanEmptyGraph field is set to true when the scan is done. That will fill the recast graph with empty tiles which you can recalculate later.

  1. No, there is nothing built in for that purpose.

  2. Not significantly, I would expect >95% of the time to be spent in code which is independent of how many other tiles have been recalculated.

  3. Yes, it stops all pathfinding. Right now there is no way around it, it would in theory be possible to allow pathfinding to continue running during most of the update. Graph updates currently guarantee that if a graph update is requested, any path requests made after that will always use the updated graph information (unless graph update throttling is enabled of course). The graph update will however run in a separate thread if multithreading is enabled.

  4. Sorry, no.