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"

'Copy Material Instance Parameters' vs copy by hand?

The 'Copy Material Instance Parameters' node is marked as 'Very slow implementation, avoid using at runtime' - but I need to copy material parameters from one dynamic instance to other one in-game. So will it be more performant if I would copy all the parameters (around ~20 parameters) by hand, one by one?

Product Version: UE 4.12
more ▼

asked Aug 11 '16 at 11:55 PM in Rendering

avatar image

2k 157 153 208

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

1 answer: sort voted first

Depends on your needs, and target platform. But that goes with almost any decision within game development. If your overall performance is not impacted by this node, just use it. If you realize at some point this is not running fast enough (e.g. maybe you need to call it every frame), look if you can store the parameters yourself and make a function to copy them.

As a start I would call a function which just calls this node, If you need to replace it at any point you can just rework the function instead of finding all the places where you called the node.

more ▼

answered Aug 13 '16 at 11:51 AM

avatar image

2.4k 69 42 141

avatar image Slavq Aug 14 '16 at 03:04 PM

I target desktop and just did some tests, looks like this node isn't that bad as it's described. I'll look into it again if I'll have some performance problems. For now I'll just use it.

Yeah, storing it in a function is a good programming practice in general :)


(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