Elements per Object Optimization

Hi,

I’ve read in the documentation that it is more optimized to have the least elements per object as possible.
Let’s say I have a house with 4 materials: Beams, Roof, Floor, Walls.

Is it better optimized if I export each parts of the house separately so I have 4 objects with 1 element each instead of 1 object with 4 elements?

I understand having only 4 elements for 1 objects really isn’t a big deal, but lets say I’d have 50 elements or something… I just want to make sure I understand that optimization concept.

Thank you! ^-^

if the house has materials, it will have 4 drawcalls. (gpu needs to draw it four times)
if the 4 separate pieces of the house each have one material the total will be 4 drawcalls.
The latter though, the drawcall is only for that specific piece, while the house needs to be drawn four times.
the latter is more optimal.

and, if you understand lego, you understand ue4. you could re-use a wall you made, instead of modelling two exact same walls. that will also help performance, and workflow.

Oh, I see… so the reason why the latter is more optimal is because it doesn’t have to draw the whole house 4 times, instead the whole thing is only drawn 1 time but it’s separated in 4 smaller drawcalls (for each pieces). So it isn’t drawing the same thing more than once.

That makes sense. Thanks a lot!