# How do I actually use Unreal Insights to efficiently find blueprints and functions that are slowing down my game thread?

**URL:** <https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038>\
**Category:** Programming & Scripting\
**Tags:** profiling, unreal-engine, Performance-Profiling, Blueprint\
**Created:** [December 15, 2023, 6:14pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038 "2023-12-15T18:14:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [December 15, 2023, 6:14pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/1 "2023-12-15T18:14:16Z")

</div>

Right, so at this point I have gone through several hours long videos on Unreal Insights from Epic and other Youtubers and I just can’t seem to be able to use Unreal Insights properly.

I use RenderDoc for GPU profiling and it’s so easy to locate EXACTLY the blueprint/function/material/texture/pixel that’s causing latency. The GPU Visualiser also helped me alot in profiling the GPU.

But for CPU profiling, I haven’t been able to find a tool that is similar in simplicity. I have been trying to learn Unreal Insights to profile my CPU game thread but it’s so ■■■■ complex. I’ve gone through multiple hours long videos and they all seem to be showcasing its features rather than showing me how to locate which function on the game thread is causing a delay.

I’m trying to use the City Sample Crowds pack in a marketplace crowd spawning system and I know the City Sample is too heavy for game development, that’s why I chose it so I can learn CPU profiling.

I spawn my vehicle pawn (80-90 fps, game thread 11.02ms yay)

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/c/83cbf5d8e584aaed2ecef96d6c7e1320f6509975.jpeg)

I go towards the crowd spawner, it spawns some characters from the very heavy City Sample Crowds pack (~40 fps hmm)

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/b/debb1c166a561fcb55eb7e499c17fb65338260f8.jpeg)

I go even further into the crowd and have more people spawned (~20-30 fps, game thread 34.26ms boo)

 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/3/583ac5be2812b4a166f6502b96bff63964be56c7.jpeg)

So I go to my Editor Preferences, Standalone launch parameters and put in the CPU Profile Trace parameters “-cpuprofilertrace -loadtimetrace -trace=default,memory,metadata,assetmetadata”

And I launch Unreal Insights and my game in a standalone instance. Unreal Insights starts collecting data, I close all other tracks except Game Thread and I immediately see where the issues are.

This function takes 15 seconds when loading the crowd characters for the first time. (See I even learned to use Trace Bookmarks!)

 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/1/ad15699e9a743d4a062adf0be8f05513e31c78a2.png)

Sometime during the game where my FPS hit a low of 13, I focused on that frame and all I see is this jumble of lots of events

 ![5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/b/3fb11cd1ee5bad534889ca980b7de69f8a34e9cb.png)

That’s as far as I understood, afterwards, I just don’t know how to locate these functions, it just has generic names on everything like Function, Blueprint, ComponentTick, etc.

How do I actually profile my game thread? Is there any simpler method so that I can identify my bottlenecking functions, fix them and get on with my development? I’ve been stuck here for the past 3 days

---

<div class="post-metadata">

**Author:** ![Zssork](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zssork/32/629783_2.png) [@Zssork](https://forums.unrealengine.com/u/Zssork)\
**Post date:** [December 15, 2023, 7:49pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/3 "2023-12-15T19:49:17Z")

</div>

you can create a custom events in c++ with: `TRACE_CPUPROFILER_EVENT_SCOPE_STR("My custom event name");` not shure if that is what you are looking for

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [December 15, 2023, 8:02pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/4 "2023-12-15T20:02:57Z")

</div>

But I don’t know which event is heavy… how do I find that out?

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [December 19, 2023, 9:53am UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/5 "2023-12-19T09:53:15Z")

</div>

Screw Unreal Insights. The Session Frontend does the job for me. I had a massive spike in game time when I was forming ice in the level after rain but had no idea why it was happening now. It worked fine before.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/2/632783e50425c87d2c4fb5083925e3c96ea491d9.jpeg)

After ice formation:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/f/ccfcac7bf001bd9efdc73532c9d953bc3031677c.jpeg)

So I use the console command stat startfile to start recording while this is happening during play and then use stat stopfile to stop recording after a few seconds.

I launch Session Frontend from Tools \> Session Frondend

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/6/c26cd3ea79c3137f1259877614c0668e26da6e94.jpeg)

I go to the Profiler tab and load the stat dump file: (ProjectFolder/Saved/Profiling/UnrealStats)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/f/97f2dec2d5ed21fc39e29f0ae9efa40426f73f45.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/0/a00e2bda19d86fa23570eaf58fa19916571c3498.png)

I click on the peak in the Graph Viewer and the Event Name tab shows me the most time consuming threads aka the Render and Game Thread.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/7/ef7bc681cc1f58f5002b992746afec7f8b2ad895.png)

I know that the Render Thread is affected by any hitches in the Game Thread so I start expanding the Game Thread:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/3/a23adb4ed33629f442d9dacdfc1235dfde1d5158.png)

And it shows me exactly what actor is causing this hitch. In my case, the Radar Sensor. Which immediately told me what was going on, because I coded it like this.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/3/c93f3d52168927e35087ba78a529ffb2610cc500.png)

I had designed the Radar Sensor to trace for all actors with a few exceptions, and when I spawned the ice sheets, it started picking up hundreds of ice sheet BPs and went berserk. This wasn’t an issue before because I built the Radar long after I built the ice sheets and forgot all about it till I changed the weather and rain started becoming ice.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/e/9de23ad164d63639fc92b0ead4a7007b681a1c19.jpeg)

THANK GOD, FINALLY SOMETHING RECOGNIZABLE IN THIS WHOLE PROFILING DEBACLE. I never would have guessed it was this BP causing an issue if it weren’t for the Session Frontend.

I hope this helps someone out in this weird and ominous world of profiling. Thank you for coming to my TED Talk.

---

<div class="post-metadata">

**Author:** ![Spaceballone81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spaceballone81](https://forums.unrealengine.com/u/Spaceballone81)\
**Post date:** [January 6, 2024, 6:00pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/6 "2024-01-06T18:00:55Z")

</div>

I am trying this very same thing. Insights is just so ■■■■ cumbersome. I saw a video on exactly what you were doing but my “profiler” tab is not showing. Anyone know how I can switch it on? I tried looking at all settings and did some research and I think I need to run a command to enable the “profiler” tab. I have been on this for 4 days…trying to find out what is killing my performance.

Just looking for how to turn on my profiler tab.

---

<div class="post-metadata">

**Author:** ![Spaceballone81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spaceballone81](https://forums.unrealengine.com/u/Spaceballone81)\
**Post date:** [January 6, 2024, 9:44pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/8 "2024-01-06T21:44:09Z")

</div>

For those looking for it in 5.3 it was retired , but you can use 5.2 and load 5.3 profile save files there. Insights is just too bloated.

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [January 10, 2024, 4:24pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/9 "2024-01-10T16:24:12Z")

</div>

Did you try the Session Frontend method? I’ve found absolutely no use for Unreal Insights till now.

For that command you were looking for, I used these commands:  
-cpuprofilertrace -loadtimetrace -trace=default,memory,metadata,assetmetadata

They go in Editor Preferences \> Level Editor - Play \> Additional Launch Parameters textbox.

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [January 10, 2024, 4:25pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/10 "2024-01-10T16:25:00Z")

</div>

Another reason not to switch to 5.3

---

<div class="post-metadata">

**Author:** ![Spaceballone81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spaceballone81](https://forums.unrealengine.com/u/Spaceballone81)\
**Post date:** [January 10, 2024, 10:14pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/11 "2024-01-10T22:14:49Z")

</div>

Yeah. I tried the front end in 5.3 but it was retired. I successfully used frontend in 5.2 and was able to locate some of my processing time issues.

---

<div class="post-metadata">

**Author:** ![Jus2Cat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jus2cat/32/1148325_2.png) [@Jus2Cat](https://forums.unrealengine.com/u/Jus2Cat)\
**Post date:** [January 12, 2024, 7:07pm UTC](https://forums.unrealengine.com/t/how-do-i-actually-use-unreal-insights-to-efficiently-find-blueprints-and-functions-that-are-slowing-down-my-game-thread/1528038/12 "2024-01-12T19:07:28Z")

</div>

yep. Session frontend was removed in UE 5.3 but you still can use it with source engine build (how to: check 5.3 changelog page)  
And I don’t recommend enable it. If you need profile blueprints with unreal insights just enable this checkbox (see screenshot)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/7/537ad8d0ced0717f2e5897468c73f64e1f856ebc.png)
