upvote
I've built a few transportation simulations where I started out with pathfinding methods like A* but the compute cost doesn't scale well with 10,000 or 100,000 agents running around. Pre-computing flow fields for common map destinations is one of those areas where you trade off storage for compute. The agents just look for the signpost telling them "this direction to destination x" instead of actually calculating a path.

https://en.wikipedia.org/wiki/A*_search_algorithm#

https://www.youtube.com/watch?v=zr6ObNVgytk

reply