# How can I solve this bottleneck?

**URL:** <https://forums.unrealengine.com/t/how-can-i-solve-this-bottleneck/2491145>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** Unreal-Insights, Optimization, unreal-engine, Performance, Performance-Profiling, question\
**Created:** [May 5, 2025, 9:00am UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-bottleneck/2491145 "2025-05-05T09:00:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carta\_oro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carta\_oro](https://forums.unrealengine.com/u/carta_oro)\
**Post date:** [May 5, 2025, 9:00am UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-bottleneck/2491145/1 "2025-05-05T09:00:16Z")

</div>

I occasionally experience severe lag, so I tried profiling, but I can’t pinpoint the cause.  
I’m pretty sure it’s a CPU bottleneck since I’m doing physics calculations. It’s all in WaitForTasks, and it’s happening inside an EngineLoop and I don’t know what’s causing this.  
Everything else is completely clean and this is the reason for almost everything.

All actor and component ticks are disabled and I’m simulating around 100 objects at a time. Only the object being simulated has CCD enabled, but the simulation time is only a few seconds. Apart from some extreme localized lag, performance generally doesn’t degrade that much.

I don’t know what task is being waited for and what is looping that is causing this lag. How can I find out the cause?

 ![UnrealInsights](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/a/75a4e9652d28a1768c5a454730a04e40fe05a29a.png)

---

<div class="post-metadata">

**Author:** ![XxpiingyxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxpiingyxX](https://forums.unrealengine.com/u/XxpiingyxX)\
**Post date:** [May 5, 2025, 2:27pm UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-bottleneck/2491145/2 "2025-05-05T14:27:50Z")

</div>

Can you show the Callees? Which is the lowest callee with a “flame” next to it?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/d/15d8ff7af56b91c51aca04af40412a5fd1bb4788.png)

Have you tried the command `Stat Unit` to see if it’s actually a CPU bottleneck or not?

---

<div class="post-metadata">

**Author:** ![carta\_oro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carta\_oro](https://forums.unrealengine.com/u/carta_oro)\
**Post date:** [May 6, 2025, 5:20am UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-bottleneck/2491145/3 "2025-05-06T05:20:39Z")

</div>

Is this it? I’m not very experienced so I’m not sure if this is correct, but it seems like there’s a problem with the UI. Is it possible for the UI to process so slowly?

 ![Screenshot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/d/9fd14788621d79eb2c3faf64af2e16f2805c1798.png)

I checked the stats unit and found there was a significant slowdown in Frame and Game. No abnormalities were found in the GPU.
