'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?
asked Aug 11 '16 at 11:55 PM in Rendering
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.
answered Aug 13 '16 at 11:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here