i use NavMesh do a RTS. i found a problem. some time when i press mouse in game, player can move at soon.but some time it slow. Then , i print the press information out. i see the player move after message out in 1.0s. what make the slow?
Navmesh agents have to find their path - the more agents the longer it will take for them to do so. It isn’t a fault it’s just the amount of time it takes. You will need to design your game around it…
The performance is affected by:
- The number of agents
- The complexity of the navmesh (this in itself is a complicated measurement)
- The distances that the agents are trying to travel