# Is it suitable to use quality switch in materials?

**URL:** <https://forums.unrealengine.com/t/is-it-suitable-to-use-quality-switch-in-materials/117401>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [October 11, 2018, 2:32pm UTC](https://forums.unrealengine.com/t/is-it-suitable-to-use-quality-switch-in-materials/117401 "2018-10-11T14:32:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vefery](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vefery](https://forums.unrealengine.com/u/Vefery)\
**Post date:** [October 11, 2018, 2:32pm UTC](https://forums.unrealengine.com/t/is-it-suitable-to-use-quality-switch-in-materials/117401/1 "2018-10-11T14:32:35Z")

</div>

I’ve searched for a optimization videon on YouTube and came across the video where author say’s that every sequence in materials quite increase it’s size (which is affecting performance)  
So is it suitable to use quality switch if I’m targeting low-med end devices like Redmi note 4x? (Currently I use 1-3 switches in almost every material)

---

<div class="post-metadata">

**Author:** ![Luos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luos/32/918700_2.png) [@Luos](https://forums.unrealengine.com/u/Luos)\
**Post date:** [October 12, 2018, 4:51pm UTC](https://forums.unrealengine.com/t/is-it-suitable-to-use-quality-switch-in-materials/117401/2 "2018-10-12T16:51:53Z")

</div>

Yes, because it only uses the instruction input from the current “quality settings” and ignores the other ones.  
I personally try to keep it at one switch close to the material input, but I dont think a few more will really hurt performance.

---

<div class="post-metadata">

**Author:** ![Vefery](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vefery](https://forums.unrealengine.com/u/Vefery)\
**Post date:** [October 13, 2018, 2:27am UTC](https://forums.unrealengine.com/t/is-it-suitable-to-use-quality-switch-in-materials/117401/3 "2018-10-13T02:27:59Z")

</div>

> [@Luos](#):
>
> Yes, because it only uses the instruction input from the current “quality settings” and ignores the other ones.  
> I personally try to keep it at one switch close to the material input, but I dont think a few more will really hurt performance.

Thank you!

---

<div class="post-metadata">

**Author:** ![tommybazar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tommybazar](https://forums.unrealengine.com/u/tommybazar)\
**Post date:** [March 3, 2021, 3:59am UTC](https://forums.unrealengine.com/t/is-it-suitable-to-use-quality-switch-in-materials/117401/4 "2021-03-03T03:59:57Z")

</div>

Any number of quality switches won’t ever hurt performance, it’s a compile-time decision. Worst thing that could happen is that your shader compile times increase.

In runtime, each shader resulting from the material has fixed quality that only uses the instructions from that switch.

---

<div class="post-metadata">

**Author:** ![eblade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eblade](https://forums.unrealengine.com/u/eblade)\
**Post date:** [May 25, 2021, 5:20pm UTC](https://forums.unrealengine.com/t/is-it-suitable-to-use-quality-switch-in-materials/117401/5 "2021-05-25T17:20:11Z")

</div>

… however, your build still has all of the shaders, which may not be what is desired, as memory/storage requirements may be vastly affected by shipping a big ol’ pile of unused shaders
