# Is 42,000 actors a lot?

**URL:** <https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** actors, draw, Optimization, unreal-engine, draw-calls\
**Created:** [February 5, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176 "2023-02-05T16:00:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Memeready](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memeready](https://forums.unrealengine.com/u/Memeready)\
**Post date:** [February 5, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/1 "2023-02-05T16:00:22Z")

</div>

Hey,  
So I’ve been working on a project and recently I’ve been getting 20 frames per second. I still haven’t found out why. My GPU is running on 10ms, the draw calls are 7000 which I’m assuming is high. I have checked the textures sizes and the memory usage, and the results were good. I’m not sure what else to check. I’m wondering if it’s because of the amount of actors in the scene?

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [February 6, 2023, 11:02pm UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/2 "2023-02-06T23:02:04Z")

</div>

Hi,

So you’re using `stat unit` to see that your GPU is only taking 10ms to render a frame? (90FPS) - Which of the other 2 stats is causing the bottleneck then?

Are most of your 42,000 actors static meshes? Or 42,000 bouncing physics balls? 😉

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 7, 2023, 2:05am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/3 "2023-02-07T02:05:09Z")

</div>

Yes it is a lot if not optimized. What are those actors? Simple meshes? Characters? Trees? There are several optimization systems to deal with each type in particular. In the end 42.000 is still a lot. If you are already familiar with “stat” also check out the UI system. Slate can misbehave and drastically reduce FPS with complex widgets even when they are hidden.

---

<div class="post-metadata">

**Author:** ![Memeready](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memeready](https://forums.unrealengine.com/u/Memeready)\
**Post date:** [February 7, 2023, 8:00am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/4 "2023-02-07T08:00:26Z")

</div>

They are all static meshes, my GPU is on 10ms however my draw is quite high (50-60ms).  
I do get 7000 draw calls at some parts of my scene however when I asked if that many draw call is a lot in another forum. I was told that it’s not too many. Also I have to mention that about 37000 of my static meshes have nanite on them.

---

<div class="post-metadata">

**Author:** ![Memeready](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memeready](https://forums.unrealengine.com/u/Memeready)\
**Post date:** [February 7, 2023, 8:02am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/5 "2023-02-07T08:02:25Z")

</div>

Simple low poly cubic static meshes.  
Overall it is not a too many triangles problem nor too many rigs or physics. Just pure static meshes.

Thanks I will also check the UI system, though I’m not sure if the UI is referring to the custom user interface in the project of the unreal engine UI? If you mean the in-game UI, I haven’t made any.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 7, 2023, 2:31pm UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/6 "2023-02-07T14:31:40Z")

</div>

> [@Memeready](#):
>
> They are all static meshes

These can still reduce performance greatly, even simple cubes on a high end rig.  
UE has a system to spawn many meshes with improved performance, it’s the instanced static mesh:

> [https://www.youtube.com/watch?v=cfR36FTbvcQ](https://www.youtube.com/watch?v=cfR36FTbvcQ)

If the static meshes are used as foliage you’d prefer the foliage tools / assets.

> [@Memeready](#):
>
> in-game UI, I

Yes, those widgets.

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [February 7, 2023, 9:19pm UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/7 "2023-02-07T21:19:40Z")

</div>

combine objects.  
If you have 7000 separate cubes  
it is way slower than an fbx with 7000 cubes inside it.  
the fbx becomes one object instead of 7000.

---

<div class="post-metadata">

**Author:** ![Memeready](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memeready](https://forums.unrealengine.com/u/Memeready)\
**Post date:** [February 8, 2023, 6:58am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/8 "2023-02-08T06:58:27Z")

</div>

Since they are already on the scene. Would merging work? And is it really worth it?

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 9, 2023, 2:48am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/9 "2023-02-09T02:48:44Z")

</div>

Not exactly, there are plenty of other ways to optimize. Else you would be building your level in Blender and export entire worlds to FBX, it’s not 2005 XD.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 9, 2023, 4:40am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/10 "2023-02-09T04:40:35Z")

</div>

> [PLease explain difference between static mesh (instance) and an Instanced static mesh? - #6 by FrankieV](https://forums.unrealengine.com/t/please-explain-difference-between-static-mesh-instance-and-an-instanced-static-mesh/765218/6)

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [February 9, 2023, 9:22am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/11 "2023-02-09T09:22:13Z")

</div>

try it.  
group a bunch of actors and combine them.  
see if you get faster results.  
or break your level into smaller partitions  
Ppl have been optimizing for years  
its a science  
but with unreal it is easy to get lazy and think the whole sink will be fine

---

<div class="post-metadata">

**Author:** ![Memeready](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memeready](https://forums.unrealengine.com/u/Memeready)\
**Post date:** [February 11, 2023, 3:32am UTC](https://forums.unrealengine.com/t/is-42-000-actors-a-lot/764176/12 "2023-02-11T03:32:26Z")

</div>

Nah I already grouped them before, but it didn’t work.

No worries though I found the solution.

I wasn’t being lazy I just didn’t know such options exist.

I basically batched all the unnecessary meshes.
