x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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! ^-^

Product Version: UE 4.11
Tags:
more ▼

asked May 04 '16 at 04:38 AM in Rendering

avatar image

Owex
10 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered May 04 '16 at 07:51 AM

avatar image

Luos
9.2k 283 63 330

avatar image Owex May 04 '16 at 08:38 AM

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!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question