2 ms·
It's not on every frame but depends on how often the enemy moves (every 150 ms or so). That's a good suggestion anyway!
by Kiro 10y ago
It's not on every frame but depends on how often the enemy moves (every 150 ms or so). That's a good suggestion anyway!
- stefs 10y agocalculate the path once and cache it. only recalculate it if the agent runs into an obstacle or maybe in a random time interval to make it cheaper.