2 ms·
Can’t you just use web workers to offload A* path finding to a separate thread and expose results to the main thread through shared array buffers?
by deadbabe 2y ago
Can’t you just use web workers to offload A* path finding to a separate thread and expose results to the main thread through shared array buffers?
- poincaredisk 2y ago>just use web workers to offload A* ... shared buffers That's a huge overkill. A single dijkstra per game tick (or even only when map changes or player moves) is enough.