If you create and run many NPCs, how can you implement them to ensure good execution performance?

road

New member
If you create and run many NPCs, how can you implement them to ensure good execution performance?
Should I adjust the Behavior Manager's Update Interval?

I'd like to know the tricks about this.
 
The first step is to look at the profiler and determine if it's even a problem. Many behavior trees will not necessarily cause any performance spikes. From there you can determine if a particular task is causing a problem, or if you need to reduce the number of ticks through the update interval.
 
Top