Any way to adjust the Behaviour Tree update rate?

As the titles says, is it possible to adjust/change the Behaviour Tree update/refresh rate?

Out of the box BT doesn’t really “update” all the time, it depends solely on how you use it. If you have a lot of ticking tasks and/or serviced I can imagine how it can be affecting your performance in a bad way. I’d strongly encourage you to look closer at how you use the BT.

If you still want to “slow down” the BT update rate you’ll need to either go to UE4 sources and have UBehaviorTreeComponent::TickComponent skip some of the calls, or extend UBehaviorTreeComponent and implement the slowing down in that class. Make sure to instantiate your own class in (your) AIController’s constructor, and assign it to BrainComponent, before calling RunBehaviorTree - otherwise you’ll end up with the default BT component.

Cheers,

–mieszko

@mieszko - Could you elaborate on " If you have a lot of ticking tasks and/or service"? If we are using a behavior tree this is to put in tasks and services, so what is a “bad usage” of a behavior tree? I would also like to be able to simply control the polling rate of behavior trees. For example for AIs being way away from the player.