Pfinder is a pathfinding library based on "Jump Point Search" algorithm
200 NPCs are generated every 1/4 second on the map. When the number of FPS is reduced by more than two the test is stopped and the maximum number of NPCs generated is displayed.
Player is the red square.
NPCs are the green squares.
Left mouse button: spawns and control the player.
Right mouse button: spawns 50 NPCs.