# Is there a limit for AI perception ?

**URL:** <https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912>\
**Category:** AI\
**Tags:** ai-navigation, Perception, ai-controller, unreal-engine, question\
**Created:** [April 24, 2023, 4:56am UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912 "2023-04-24T04:56:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [April 24, 2023, 4:56am UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912/1 "2023-04-24T04:56:59Z")

</div>

Hi,

I noticed that when I have let’s say 100 AI in the map the perception stops or become delayed for certain AI, It’s not a max agent limit issue, I already have that high and they all walk around just fine.

I can set their chase target at begin play and they will all follow the player just fine, but relying on perception it doesn’t trigger for some of them or it’s delayed.

Here’ a quick test, this is with 68 on the map, perception radius is 3500  
The perception is delayed by a few seconds

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/6/ae604f7609bb2f00d70c0476bbcd5423b007d12e.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/6/ae604f7609bb2f00d70c0476bbcd5423b007d12e.mp4)

This is with 20 AI you can see how the perception reacts instantly

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/2/2621ca532a4e676c6d6b52a658542a64eeb9c801.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/2/2621ca532a4e676c6d6b52a658542a64eeb9c801.mp4)

Is there a config or setting somewhere that controls the perception tick rate or something like that ?

Any info is appreciate it, thank you.

---

<div class="post-metadata">

**Author:** ![Piotr.Bak2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Piotr.Bak2](https://forums.unrealengine.com/u/Piotr.Bak2)\
**Post date:** [April 24, 2023, 7:37am UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912/2 "2023-04-24T07:37:19Z")

</div>

What engine version are you using?  
What perception sense are you talking about ?

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [April 24, 2023, 6:25pm UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912/3 "2023-04-24T18:25:40Z")

</div>

I tested it in 27 and 5.1 and got the same result.  
The sense is sight.

---

<div class="post-metadata">

**Author:** ![chrudimer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chrudimer/32/918651_2.png) [@chrudimer](https://forums.unrealengine.com/u/chrudimer)\
**Post date:** [April 24, 2023, 8:56pm UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912/4 "2023-04-24T20:56:33Z")

</div>

Hi, yes there is a limit of work that the sight sense does per tick (since every actor would need to trace to every other actor in its range, which can add up to a lot of traces very quickly, so the number of traces it does per tick is limited). And it also prioritizes by distance.

So you could increase the amount of traces it is allowed to do in the DefaultGame.ini, e.g.

```auto
[/Script/AIModule.AISense_Sight]
MaxTracesPerTick=60

```

which ofc will cost you performance. And/or you could implement the team sense and only detect hostiles, or if you only want to detect the player with the sight sense you could also disable that pawns are automatically registered and then only register the player to the sight sense.

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [April 25, 2023, 5:44am UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912/5 "2023-04-25T05:44:42Z")

</div>

Thank you for sharing the knowledge, I appreciate it.

---

<div class="post-metadata">

**Author:** ![Djblackgame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Djblackgame](https://forums.unrealengine.com/u/Djblackgame)\
**Post date:** [December 16, 2023, 10:48pm UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912/6 "2023-12-16T22:48:03Z")

</div>

Sorry, I was reading that because I’ve the same issues but in my DefaultGame.ini there isn’t that option there is only the name of the project why that? I’m working on 5.1

---

<div class="post-metadata">

**Author:** ![MRookie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MRookie](https://forums.unrealengine.com/u/MRookie)\
**Post date:** [May 8, 2024, 11:49am UTC](https://forums.unrealengine.com/t/is-there-a-limit-for-ai-perception/1138912/7 "2024-05-08T11:49:05Z")

</div>

I believe you can just add the line to the ini file and it will be read when you start the engine next time.
