When Instancing mesh, should we divide it into groups?

Let me give you an example


There’s a map of this structure.

  • All red boxes use the same mesh, same material.
    -Distance Cull, LOD is not used.

P2

Type 1 was instanced by 4 groups : Part A, Part B, Part C, Part D.

Type 2 was instanced all Red Boxes at once without segmentation.

It is better to divide groups like type 1 according to the area?
Or it doesn’t have to?

If I Instance all the Red Boxes into one like Tpye2,
Even though the drawcall is small, the actor itself is very huge.

so I think the range of mesh that doesn’t come into my camera will always load as well.
Therefore, I am worried that it will adversely affect the performance.

What would be better?

1 Like

Type 2 is better. What makes you think the ‘actor’ is huge? How are you gauging this?

1 Like

Oh, I just thought very simple.
Type1 is data containing 16 tubes in 1 actor,
There are 64 Type2s in one actor.

However, due to the “instance,” drawcall would be integrated into 1
So I was not sure if it was right to judge that 2 was huge, so I posted this question.

If you’re instancing, you can have thousands of objects in one draw call.

1 Like

When I instanced like Type2,
(In play mode) even when I’m only looking at the group A side as a character,
Since I instanced with 1 actor, I expected the cube of B~D side to be loaded at the same time.
Is this right?

I’ll say it on the premise that it’s right.
Is there anything that adversely affects the performance due to “something” other than drawcall that I don’t consider, since the mesh of the parts I don’t need is also loaded?
I was concerned about that.

If they’re not all loading, your map may have world partition enabled.

1 Like

Thank you. So let’s get to the bottom line.
In any case, I don’t have to divide the zones if I’m gonna instance duplicated Props(use same mesh, same material).
Is it right?

If you want to make a large amount of instances of one mesh, just make the instances, no need to do it in groups.

1 Like

It must have been a lengthy question because I’m a beginner, but thank you for letting me know. You’ve been a great help.

1 Like