# how to optimize many actors in scene

**URL:** <https://forums.unrealengine.com/t/how-to-optimize-many-actors-in-scene/461583>\
**Category:** Rendering\
**Tags:** actor, Optimization, object, unreal-engine, Rendering, question\
**Created:** [February 10, 2020, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-optimize-many-actors-in-scene/461583 "2020-02-10T15:46:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4a318649](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4a318649](https://forums.unrealengine.com/u/anonymous_user_4a318649)\
**Post date:** [February 10, 2020, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-optimize-many-actors-in-scene/461583/1 "2020-02-10T15:46:24Z")

</div>

Hello~

I am making a landscape using Marching Cube, But I faced a sharp drop in performance.

At first, I was delaying vertex optimization, so I thought this was a problem.  
but after the optimization I had the same problems.

Even if I eliminated the all vertex, the same thing happened!

 ![296638-k-187.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/c/5fcdac299fa423b64acc6d076486a422d105bc5b.jpeg)

There is one parent actor, and there are 41 x 41 x 41 descendants below it.  
Unused actors have only been created for quick adaptation when the terrain changes.

The picture is a state without vertices(models), but all the actors are on the screen

 ![296639-k-188.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/6/756f26b26a3fff1da6ee163adfa670e2bef964ae.jpeg)

Again, if the actor is not on the screen, the frame will return normally.

I used ‘bUseAttachParentBound’ to set the bounds of unused actors, or tried other settings, but they all failed.

Is there any way to optimize only by deleting(Reducing actors exposed to the screen) unused actors?

---

<div class="post-metadata">

**Author:** ![Mohit\_Agrawal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mohit\_Agrawal](https://forums.unrealengine.com/u/Mohit_Agrawal)\
**Post date:** [February 26, 2020, 7:30pm UTC](https://forums.unrealengine.com/t/how-to-optimize-many-actors-in-scene/461583/2 "2020-02-26T19:30:26Z")

</div>

Use Level Streaming Buddy

Divide your level into smaller levels(parts) and only load the level(show the player) the parts that are relevant to him and unload the rest parts

---

<div class="post-metadata">

**Author:** ![phil\_me\_up](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil\_me\_up](https://forums.unrealengine.com/u/phil_me_up)\
**Post date:** [February 27, 2020, 12:00am UTC](https://forums.unrealengine.com/t/how-to-optimize-many-actors-in-scene/461583/3 "2020-02-27T00:00:25Z")

</div>

41x41x41 = 68921 actors. Generally speaking you want to be looking at \< 5000 actors depending on your project (in some you can get many more, but 68000 is way too many).

The reason it’s slow as you’re performing visibility checks against each one as well as then having the cost of draw calls etc.

As always with optimisation, there’s not just one answer and it’s heavily dependent on your project. A few things you can try:

- Don’t have everything as a child actor of a root. Child actors are generally slow and clumsy so avoid wherever possible. Instead has each child as a new actor.
- Look at using culling volume / culling distances
- Look at using level streaming or world composition
- Look at using instances or heirarchial instances if your actors share the same mesh and materials (and you’re using 1 material per mesh that’s going to be instanced)
- Add lods to reduce the poly count of what is shown
- Look at using HLODs to create proxymeshs to simplify whats being rendered as well as reducing the number of actors which need to be drawn
- Simplify materials / transparency / overdraw etc.

---

<div class="post-metadata">

**Author:** ![xx\_pooya\_xx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xx\_pooya\_xx](https://forums.unrealengine.com/u/xx_pooya_xx)\
**Post date:** [March 2, 2024, 11:57pm UTC](https://forums.unrealengine.com/t/how-to-optimize-many-actors-in-scene/461583/4 "2024-03-02T23:57:22Z")

</div>

The thing is. What if there are NPCs walking around that areas that are not streamed and everything? How can we deal with those?

---

<div class="post-metadata">

**Author:** ![MasterFuzzFuzz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MasterFuzzFuzz](https://forums.unrealengine.com/u/MasterFuzzFuzz)\
**Post date:** [November 7, 2024, 5:07am UTC](https://forums.unrealengine.com/t/how-to-optimize-many-actors-in-scene/461583/5 "2024-11-07T05:07:59Z")

</div>

> [@phil\_me\_up](#):
>
> Don’t have everything as a child actor of a root. Child actors are generally slow and clumsy so avoid wherever possible. Instead has each child as a new actor.

Literally the worst take in history lmao
