4 ms·
True, but mind the search space size. You can go through 50-80k search nodes in 10ms in a modern CPU, so even using Dijkstra seems feasible on a decent impleme
by dietr1ch 1y ago
True, but mind the search space size.
You can go through 50-80k search nodes in 10ms in a modern CPU, so even using Dijkstra seems feasible on a decent implementation as the grid used in the animations seems to have 100x80 nodes.
If I was making a game I'd focus on gameplay first, since giving the game some life by conditioning the paths seems more important to have a good game than achieving 200μs search times.
Luckily, I'm not making a game :P, my current side-project is writing my own pathfinding playground to explore optimisation techniques and tools.