Function AstarPath.FlushGraphUpdates
Forces graph updates to complete in a single frame.
void FlushGraphUpdates ()
Forces graph updates to complete in a single frame.
This will force the pathfinding threads to finish calculating the path they are currently calculating (if any) and then pause. When all threads have paused, graph updates will be performed.
Using this very often (many times per second) can reduce your fps due to a lot of threads waiting for one another. But you probably wont have to worry about that.
This is almost identical to FlushWorkItems, but added for more descriptive name. This function will also override any time limit delays for graph updates. This is because graph updates are implemented using work items. So calling this function will also execute any other work items (if any are queued).
Will not do anything if there are no graph updates queued (not even execute other work items).