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"

What is best practice with material instances

I hope some one with insight concerning rendering and materials would help me with this dilemma.

Scenario: I have parking lot with filled with 1000 cars. There is jut one car mesh and material. For variation material has parameters for color and detail texture. My question is which puts less strain on rendering:

  1. Every car spawned in construction script create dynamic material instance and initialize color and details expected for material.

  2. Create dynamic material instances in game mode for each different car type and add to specific list. Then when you spawn car you just get the material instance based on car type from the list.

I think second is better, but I recall reading somewhere that it does not matter.

Thanks in advance.

Product Version: UE 4.14
more ▼

asked Nov 22 '16 at 09:10 AM in Rendering

avatar image

66 1 9 13

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

1 answer: sort voted first

There is no difference in actual rendering performance.

If you are looking at creating thousands of cars that way, you should consider implementing a way for them to use a single material instance, or even better, combine them into a single mesh.

more ▼

answered Nov 23 '16 at 03:59 AM

avatar image

7.9k 130 31 293

(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