# UE 5.1 preview 2 SM6 material instruction count issue

**URL:** <https://forums.unrealengine.com/t/ue-5-1-preview-2-sm6-material-instruction-count-issue/672794>\
**Category:** Feedback & Requests\
**Tags:** ue, unreal-engine, bug-report\
**Created:** [October 19, 2022, 2:23pm UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-sm6-material-instruction-count-issue/672794 "2022-10-19T14:23:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rexuyo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rexuyo](https://forums.unrealengine.com/u/Rexuyo)\
**Post date:** [October 19, 2022, 2:23pm UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-sm6-material-instruction-count-issue/672794/1 "2022-10-19T14:23:38Z")

</div>

Using UE 5.1 preview 2, RVT, SM6 and 5 enabled, an **empty** landscape material takes 545 instructions… it appears as “very bad” in the shader complexity visualization mode. So basically this is unusable. Disabling SM6 the same material takes 161 instructions.

---

<div class="post-metadata">

**Author:** ![AbelAbleTo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/abelableto/32/88714_2.png) [@AbelAbleTo](https://forums.unrealengine.com/u/AbelAbleTo)\
**Post date:** [October 26, 2022, 12:17pm UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-sm6-material-instruction-count-issue/672794/2 "2022-10-26T12:17:14Z")

</div>

Same issue here, wonder if “Variable.XX” in shader files changed from "Variable\_XX”(SM5)to “Variable.XX”(SM6) will cost an extra instruction? Otherwise those newly added method won’t cost that much difference like 350 instructions for the default created material.

---

<div class="post-metadata">

**Author:** ![Rexuyo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rexuyo](https://forums.unrealengine.com/u/Rexuyo)\
**Post date:** [October 29, 2022, 7:12am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-sm6-material-instruction-count-issue/672794/3 "2022-10-29T07:12:56Z")

</div>

There is a comment from @jon_eg about this in [this thread](https://forums.unrealengine.com/t/unreal-engine-5-1-preview/662523) , I am copying it here:

“This will be addressed in the release. SM6 uses a new shader back-end from Microsoft that has more verbose instructions for the same level of shader complexity as SM5. A change went in after Preview 2 that will apply a rough multiplier to make the SM6 numbers look more like SM5. This will generally fix the shader complexity viewmode, but there will still be differences from SM5 instruction counts. SM6 instruction counts should only be compared to other SM6-compiled shaders.”

---

<div class="post-metadata">

**Author:** ![AbelAbleTo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/abelableto/32/88714_2.png) [@AbelAbleTo](https://forums.unrealengine.com/u/AbelAbleTo)\
**Post date:** [November 2, 2022, 2:57am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-sm6-material-instruction-count-issue/672794/4 "2022-11-02T02:57:29Z")

</div>

Appreciate it. Just see this post. My Question is that “A change went in after Preview 2” does this means that we will have a better result after preview2 or ?
