# Why do shaders recompile constantly with any change to the material?

**URL:** <https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929>\
**Category:** Rendering\
**Tags:** compiling, unreal-engine, Shaders, question\
**Created:** [March 22, 2014, 6:30pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929 "2014-03-22T18:30:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6d364357](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6d364357](https://forums.unrealengine.com/u/anonymous_user_6d364357)\
**Post date:** [March 22, 2014, 6:30pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/1 "2014-03-22T18:30:18Z")

</div>

**Whenever I make a change** to a material (or even material instance!), **100-300 Shaders are recompiling** in the background, showing the updated material afterwards.

I have noticed that In the material editors my previews don’t update if i am displaying it on a preview mesh. On primitives it works or in the viewport.

Could I have done anything to provoke this? I noticed an “Intermediate” folder pop up in my project directory. Does this have to do with the problem? Please help me solve these issues as they are heavily influencing my materials workflow. Thank you!

---

<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:** [April 11, 2014, 10:55pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/2 "2014-04-11T22:55:42Z")

</div>

I have the same issue, and disabling live updates/live notes is not doing anything for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6d364357](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6d364357](https://forums.unrealengine.com/u/anonymous_user_6d364357)\
**Post date:** [April 14, 2014, 9:20am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/3 "2014-04-14T09:20:16Z")

</div>

It seems I have solved the problem myself (Edit: FOR VERSION \< 4.1 ONLY) So for anyone having this issue:

**Update your graphics card drivers.** Seems that older drivers need to recompile constantly.

Edit: Whoever downvoted me for trying to solve the issue I posted myself: I hope you are happy.

---

<div class="post-metadata">

**Author:** ![Helius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Helius](https://forums.unrealengine.com/u/Helius)\
**Post date:** [April 26, 2014, 5:54pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/4 "2014-04-26T17:54:14Z")

</div>

This bug seems to still exist in 4.1.  
I’ve seen the problem on 2 separate machines. both with similar hardware. (nvidia 650 Ti & 660 Ti)

Repro Steps:

1. Create a new project (Blueprint Third Person or Blank)
2. Create a new material
3. Add a node to the graph (Lerp, Mult, etc)…

Suddenly there are 75 shaders to compile.

Each time you add or delete a node, or change a constant or parameter value, the editor Queues up more shaders to compile. So if you just add a bunch of nodes or change a constant value a few time, you suddenly have 100s or 1000s of shaders to compile. As you can imagine, this slows down productivity.

Live nodes & Live Updates are turned off,  
Realtime rendering in the preview is turned off…

Ive updated to the latest nVidia drivers (both WHQL & Beta) and the problem persists… Any guidance or help would be MUCH appreciated 🙂

---

<div class="post-metadata">

**Author:** ![Mdvrender](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mdvrender](https://forums.unrealengine.com/u/Mdvrender)\
**Post date:** [April 27, 2014, 1:24pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/5 "2014-04-27T13:24:59Z")

</div>

I have the same problem…  
In the 4.02 version the problem was solved.  
But now the problem reappeared.

The issue is not the driver! I have the updated driver, and Again the problem was resolved in the 4.02 version of the editor

Bye!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_80025496](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_80025496](https://forums.unrealengine.com/u/anonymous_user_80025496)\
**Post date:** [April 27, 2014, 1:30pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/6 "2014-04-27T13:30:56Z")

</div>

Similar thing is happening to me too since 4.1

---

<div class="post-metadata">

**Author:** ![GiacomoT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GiacomoT](https://forums.unrealengine.com/u/GiacomoT)\
**Post date:** [April 27, 2014, 2:07pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/7 "2014-04-27T14:07:56Z")

</div>

Same problem here: every time I change something it starts compiling. 4.02 fixed it, 4.1 reintroduced the issue.

---

<div class="post-metadata">

**Author:** ![Fungy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fungy](https://forums.unrealengine.com/u/Fungy)\
**Post date:** [April 28, 2014, 11:52am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/8 "2014-04-28T11:52:52Z")

</div>

Same here. Updating graphics driver doesn’t help.

---

<div class="post-metadata">

**Author:** ![Lordink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lordink](https://forums.unrealengine.com/u/Lordink)\
**Post date:** [April 29, 2014, 6:18pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/9 "2014-04-29T18:18:21Z")

</div>

Same problem here. Have the newest drivers and GTX 570.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_80025496](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_80025496](https://forums.unrealengine.com/u/anonymous_user_80025496)\
**Post date:** [April 29, 2014, 6:24pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/10 "2014-04-29T18:24:46Z")

</div>

I tried updating drivers too and this didn’t solve the problem

---

<div class="post-metadata">

**Author:** ![Numsgil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Numsgil](https://forums.unrealengine.com/u/Numsgil)\
**Post date:** [April 30, 2014, 4:19am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/11 "2014-04-30T04:19:46Z")

</div>

Same problem here, but with an AMD GPU (updated to latest)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_29d468e51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_29d468e51](https://forums.unrealengine.com/u/anonymous_user_29d468e51)\
**Post date:** [April 30, 2014, 8:27am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/12 "2014-04-30T08:27:02Z")

</div>

I have the same problem as well. Older version fine. Downloaded new version 4.1 and all I do all day is watch it compile. Does anyone have a fix for this yet?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6d364357](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6d364357](https://forums.unrealengine.com/u/anonymous_user_6d364357)\
**Post date:** [April 30, 2014, 9:04am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/13 "2014-04-30T09:04:40Z")

</div>

Just started a new project on 4.1 (BP Rolling Template) and this project now has the recompiling issue and an older one does not. Will try opening it on a different machine and see if the problem is hardware-dependent.

---

<div class="post-metadata">

**Author:** ![theknoppix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theknoppix](https://forums.unrealengine.com/u/theknoppix)\
**Post date:** [May 1, 2014, 7:15am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/14 "2014-05-01T07:15:26Z")

</div>

Same problem here. I hope Epic fixes this as soon as possible.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dede2580](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dede2580](https://forums.unrealengine.com/u/anonymous_user_dede2580)\
**Post date:** [May 1, 2014, 7:26am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/15 "2014-05-01T07:26:53Z")

</div>

Ditto here on two different machines, both i7 with plenty of RAM and GTX cards. 4.02 was fine, 4.1 is not.

---

<div class="post-metadata">

**Author:** ![Lordink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lordink](https://forums.unrealengine.com/u/Lordink)\
**Post date:** [May 1, 2014, 7:42am UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/16 "2014-05-01T07:42:16Z")

</div>

Yeah, it’s pretty sure not the hardware problem. I have UE4 on SSD, 24 gb RAM, and 4.5 Ghz Core i5. On 4.0.1 everything was fine, on 4.1 it spends all the time recompiling the shaders. Hope that it will be fixed soon.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [May 1, 2014, 1:51pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/17 "2014-05-01T13:51:30Z")

</div>

Thank you for the information, we are currently compiling data and looking into the issue.

Tim

---

<div class="post-metadata">

**Author:** ![nick\_p](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nick\_p](https://forums.unrealengine.com/u/nick_p)\
**Post date:** [May 1, 2014, 5:44pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/18 "2014-05-01T17:44:33Z")

</div>

**5/7/2014 UPDATE: We rolled out a fix in 4.1.1 to disable the feature that resulted in so many additional shaders being compiled. Please update to resolve this issue!**

**UPDATE 2:** The hotfix is now available for non-github users as a preview: [4.1.1 hotfix update now available - Announcements - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?4406-4-1-1-hotfix-update-Preview-now-available)

A new feature was added that caused many more shaders to compile while iterating on a material and we didn’t catch it in time to fix for 4.1. It will be fixed in the next release and I’m hoping we can include it in a hotfix for 4.1 before then!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_29d468e51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_29d468e51](https://forums.unrealengine.com/u/anonymous_user_29d468e51)\
**Post date:** [May 1, 2014, 9:30pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/19 "2014-05-01T21:30:00Z")

</div>

What new feature? Can we have a estimated time frame for this hot fix or release?  
Thank You…

---

<div class="post-metadata">

**Author:** ![theknoppix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theknoppix](https://forums.unrealengine.com/u/theknoppix)\
**Post date:** [May 1, 2014, 11:37pm UTC](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929/20 "2014-05-01T23:37:32Z")

</div>

Yes, i would be happy if we can get an estimated fix date.

[Next page](https://forums.unrealengine.com/t/why-do-shaders-recompile-constantly-with-any-change-to-the-material/277929.md?page=2)
