Performance question : One Actor with many components or Many Actors
What is better and performance friendly ? or is it the same ?
Putting an actor with several components in the scene (like for example a BP with many static mesh components) Or place many static mesh actors in the scene one by one.
Thanks for answering.
asked Jan 17 '18 at 07:52 PM in Rendering
If you can choose, one actor with N components is more efficient than N actors with one component (root) each.
For example, if you move an actor through the world using SetActorLocation and you have the Sweep option checked, only the root component of the actor is checked for collisions, all the children components are not. They just move along with it.
On the other hand, if you N actors and move them all at once, each root component needs to be checked for collisions, so complexity is O(N) vs. O(1) for the previous case.
A similar reasoning applies to draw calls to the point that UE4 has an Actor Merge function which allows you to merge actors in the editor to reduce complexity and hence limit draw calls.
Follow this question
Once you sign in you will be able to subscribe for any updates here