- Home /
Question by
Azuri · Mar 14, 2013 at 11:50 PM ·
performanceupdatenavmeshagentdestination
performance impact of destination update (navmeshagent)
Hi
I'm working on an enemy ai which is using the NavMeshAgent to find its way to the player. Since I'm working on a mobile game I want to save as much performance as possible.
Is it ok to update the destination of the NavMeshAgent in the Update function or is there a better way? I could imagine, that it takes a lot of performance to calculate a new path to the player every frame.
Comment
Your answer
Follow this Question
Related Questions
How to cycle Vector3 transformations correclty perfomance-wise? 1 Answer
Navmesh AI - Huge performance impact 3 Answers
Problem with Navmesh 1 Answer
What is better: Set a animator variable each frame or use a if to check if need? 2 Answers
Any costs I should know about associated with InvokeRepeating? 1 Answer