# Best practices for handling AI behavior trees in large open-world maps? 

**URL:** <https://forums.unrealengine.com/t/best-practices-for-handling-ai-behavior-trees-in-large-open-world-maps/2624601>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [July 31, 2025, 3:23am UTC](https://forums.unrealengine.com/t/best-practices-for-handling-ai-behavior-trees-in-large-open-world-maps/2624601 "2025-07-31T03:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![auroraxlio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@auroraxlio](https://forums.unrealengine.com/u/auroraxlio)\
**Post date:** [July 31, 2025, 3:23am UTC](https://forums.unrealengine.com/t/best-practices-for-handling-ai-behavior-trees-in-large-open-world-maps/2624601/1 "2025-07-31T03:23:16Z")

</div>

Hello everyone,  
I’m developing an open-world game in Unreal Engine and using behavior trees to control AI characters. As the map gets larger and there are more AI agents active, I’m noticing performance drops and some AI behaving unpredictably.

Could anyone share best practices or optimization techniques for managing AI with behavior trees in large-scale environments? Also, how do you efficiently manage AI updates without sacrificing performance?

Thanks for any advice or resources!

---

<div class="post-metadata">

**Author:** ![PREDALIEN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/predalien/32/1194670_2.png) [@PREDALIEN](https://forums.unrealengine.com/u/PREDALIEN)\
**Post date:** [August 1, 2025, 8:43am UTC](https://forums.unrealengine.com/t/best-practices-for-handling-ai-behavior-trees-in-large-open-world-maps/2624601/2 "2025-08-01T08:43:47Z")

</div>

> [@auroraxlio](#):
>
> optimization techniques for managing AI with behavior trees

That which does not exist consumes the least resources. 😬  
Therefore, the only thing that can be done is to disable the behavior tree for remote NPCs.

Depending on the game’s features, you need to come up with a life simulation system for remote NPCs. In the simplest version, when approaching an NPC that has been unloaded, select a random result of an action that the player has not seen.
