Is TraversalProvider expensive if used too much?

I have a scenario where an ai bot (using Lerp) is following a player consistently. Is using TraversalProvider every 20 to 60 frames in update too expensive to check if target is reachable?



That depends on how much work the ITraversalProvider does, which is up to how you implement it.
I don’t think it should be too expensive unless you are doing a lot of stuff in your ITraversalProvider.