# Optimization/efficiency question? Dynamic Materials vs set materials?

**URL:** <https://forums.unrealengine.com/t/optimization-efficiency-question-dynamic-materials-vs-set-materials/37552>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [August 4, 2015, 2:37pm UTC](https://forums.unrealengine.com/t/optimization-efficiency-question-dynamic-materials-vs-set-materials/37552 "2015-08-04T14:37:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drenmon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/drenmon/32/561025_2.png) [@Drenmon](https://forums.unrealengine.com/u/Drenmon)\
**Post date:** [August 4, 2015, 2:37pm UTC](https://forums.unrealengine.com/t/optimization-efficiency-question-dynamic-materials-vs-set-materials/37552/1 "2015-08-04T14:37:22Z")

</div>

Hi there.

In my game I have several things which change colour fairly often.

Currently I have a pannel set up to change colour every time a player goes over it.  
I have it set up so the 4 player colours are in one dynamic material instance and i change a param to the player number which changes the dynamic material (using ifs).

Is that the best way to do it or should I just have 4 separate materials and just use the ‘set material’ node to change them?

This game will be running on GearVR which is why I need to best performance-wise coding.

Many thanks  
Dren
