# Profiling an actor's cpu gpu cost

**URL:** <https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402>\
**Category:** Programming & Scripting\
**Tags:** profiling, unreal-engine, Performance-Profiling, question\
**Created:** [January 17, 2025, 11:47am UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402 "2025-01-17T11:47:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5](https://forums.unrealengine.com/u/user_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5)\
**Post date:** [January 17, 2025, 11:47am UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402/1 "2025-01-17T11:47:16Z")

</div>

How can I profile an actor’s cpu and gpu cost?

I want to know how many spend the time for drawing that actor.

And how many the time for cpp logic, like tick function ; cpu.

Also Is there any way? Somthing like,  
make trace point in cpp function and computing how long does it takes for execute that function.

Any answer will be good for me.

---

<div class="post-metadata">

**Author:** ![JakeSimpson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jakesimpson/32/1008711_2.png) [@JakeSimpson](https://forums.unrealengine.com/u/JakeSimpson)\
**Post date:** [January 17, 2025, 11:57am UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402/2 "2025-01-17T11:57:38Z")

</div>

Hey,

Unreal Insights is probably the best tool for this, heres the link to the Reference Page - [Unreal Insights Reference | Unreal Engine 4.27 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-insights-reference?application_version=4.27)

In this talk I go over some of the basic of using Insights and adding C++ Scope events to determine th time your logic is taking - [https://www.youtube.com/watch?v=KxREK-DYu70](https://www.youtube.com/watch?v=KxREK-DYu70)

---

<div class="post-metadata">

**Author:** ![user\_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5](https://forums.unrealengine.com/u/user_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5)\
**Post date:** [January 17, 2025, 12:05pm UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402/3 "2025-01-17T12:05:22Z")

</div>

Thanks a lot.  
Maybe I should learn to use Unreal Insights deeper.  
I heard that theres a lot of command options for execute Unreal Insights.  
Perhaps do you happen to know about that?

---

<div class="post-metadata">

**Author:** ![JakeSimpson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jakesimpson/32/1008711_2.png) [@JakeSimpson](https://forums.unrealengine.com/u/JakeSimpson)\
**Post date:** [January 17, 2025, 12:11pm UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402/4 "2025-01-17T12:11:05Z")

</div>

Unreal Insights is definitely a tool you need to be familiar with if your profiling your project. What do you mean by “command options for execute Unreal Insights” sorry.

There are a lot of different channels you can profile for and depending on what you want different combinations will give you the best information. For Game Thread and CPU Id look at default,timings,counters,bookmarks,assetloadtime,task.

---

<div class="post-metadata">

**Author:** ![user\_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5](https://forums.unrealengine.com/u/user_03f0a1364975325bb3762b9b0e48114788315f551ac1f0f104b5b5)\
**Post date:** [January 20, 2025, 10:17am UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402/5 "2025-01-20T10:17:00Z")

</div>

Is this possible?

function  
{  
START\_PROFILE(MYTRACE)

```
  // Logic

END_PROFILE(MYTRACE)

```

}

and in unreal insights, it shows how many costs to execute logis between that tow macros.

is it possible?

---

<div class="post-metadata">

**Author:** ![JakeSimpson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jakesimpson/32/1008711_2.png) [@JakeSimpson](https://forums.unrealengine.com/u/JakeSimpson)\
**Post date:** [January 21, 2025, 10:29am UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402/6 "2025-01-21T10:29:34Z")

</div>

Hey, so what you want there is to use the SCOPE macros and that will track the time between each block of { //Logic } and record this to insights with the given name

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 20, 2025, 10:30am UTC](https://forums.unrealengine.com/t/profiling-an-actors-cpu-gpu-cost/2282402/7 "2025-02-20T10:30:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
