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?
1 Answer
1Navmesh 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
that mean if i want do a game like Starcraft is impossible? Because i just have 10 monster in game. this problem have out, i try to put 30 monster in game, all don't move.
– saucerman
and , This problem occurs in a lot of players use the NavMesh
– saucerman