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"

More materials or more instances?

Hello! I'm working on a project, and i have a lot of meshes i need to import.For them, I would need 3 base materials, and then instances would do it for all of them.Instead, i can also create a single base material, using switch parameters, and with this material, i can create instances for all my meshes.Naturally, the quality is the same, the problem is that the latter one uses 5 more instructions, compared to my "cheapest" material from the other three.In other words, i can either use 3 basic materials that have 5-6 less instructions each and create instances, or use a single one with more instructions for everything.Which is better for the performance? as far as i know, only the base material compiles, and no other instance, but is it worth it even if it has a little more instructions? One more thing: In a material, which is better for the performances: to use a VertexColor input or a premade map, for creating a mask?

Product Version: UE 4.10
Tags:
more ▼

asked Jan 07 '16 at 05:41 PM in Rendering

avatar image

ReyLoN
6 1 2 4

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

1 answer: sort voted first

If you use switch parameters, the amount of instructions depends on their true/false states, and if its only 5 more instructions there is nothing to worry about. The advantage does come when you use multiple instances, as they can (If my understanding is fully correct) share calculations that are the same among multiple instances. My guess (without testing this case) would be that even though the performance gain is very minimal, using one master over 3 is better.

It does depend on how those three base materials are set up though, if you need 90% new calculations per true/false state it might not be worth it. But if you are sharing most of the nodes, and only a few new nodes come into play with true/false states it should be worth it.

In the end its both workflow and optimization. how much time do you gain using the one master material over three?

As the performance on vertex color and texture mask, its the same thing. How many vertex colors, if you have a 4096/4096 texture for masks, that would be a significant hit on vram usage.

I personally would go what you feel most comfortable with/fastest route.

more ▼

answered Jan 07 '16 at 06:22 PM

avatar image

Luos
9.2k 286 64 330

(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