# Shaders compile after nearly every material alteration

**URL:** <https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810>\
**Category:** Rendering\
**Tags:** compiling-shaders, unreal-engine, bug-report, editor, question\
**Created:** [June 13, 2014, 4:03pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810 "2014-06-13T16:03:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 13, 2014, 4:03pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/1 "2014-06-13T16:03:48Z")

</div>

Hey!  
I had the same problem with the 4.1 version of the engine. It got solved, now we have the 4.2 version and it’s back again. I am just sitting here, playing with the material editor tools and the engine compiles thousands of shaders…

Old Thread:

> **[Shaders compile after every material alteration](https://forums.unrealengine.com/questions/33016/reduce-shaders-who-get-compiled.html)**
>
> Maybe this is not a bug, but it seems to me like one. When I am working in the material editor and for example change the value of a varible then the whole shader starts to compile even if I don’t want him to, because I didn’t finish my work. This...

New Video example:  
[https://www](https://www)…com/watch?v=uzHpL5mhl3M&feature=youtu.be  
[Dropbox - Error](https://www.dropbox.com/s/h9wrk1kwsmxsgn9/Unreal%20Engine%204%20Shader%20compilation%20bug.avi)

Download (recommended)  
[Dropbox - Error](https://www.dropbox.com/s/3hbnteox85n8cmz/Unreal%20Engine%204%20Shader%20compilation%20bug).

If the video quality is too low I can make a better one!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 17, 2014, 4:55pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/2 "2014-06-17T16:55:17Z")

</div>

Hi ,

I watched the video and can see what you mean! Did this start occurring immediately after 4.2? Does this occur in a clean project with no additional content?

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 18, 2014, 12:29am UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/3 "2014-06-18T00:29:41Z")

</div>

I am not sure I think this type of the bug was present in 4.1.1 too, I think they just removed that, it gets compiled if you add constants and so on. Unfortunately I didn’t work a lot with 4.1.1, I just recognized that the old bug was gone.

I saw today that it happens when I add devide, multiply and these components… and the absloute world position component… probably it happens with a lot more components, but these are the ones which I know who cause the material to compile.

And yes it happens in blank projects too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 18, 2014, 1:03pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/4 "2014-06-18T13:03:54Z")

</div>

Could you post your dxdiag here? Thank you!

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 18, 2014, 1:51pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/5 "2014-06-18T13:51:33Z")

</div>

The dxdiag.h?

I had to pack it because it was not allowed to upload it, it’s a file now.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 18, 2014, 1:59pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/6 "2014-06-18T13:59:53Z")

</div>

Not exactly, The dxdiag I need is pretty easy to get, just follow these steps:

Go to start\>search\>cmd

Once you open the cmd prompt window, type dxdiag and hit enter. This will pullup the information I need. Thank you!

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 18, 2014, 2:09pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/7 "2014-06-18T14:09:05Z")

</div>

Oh, that is a problem ^^ Some time ago I screwed something up and the most of my cmd commands don’t work anymore, neither does this one.

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 18, 2014, 2:13pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/8 "2014-06-18T14:13:51Z")

</div>

Okay, fixed it.

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 19, 2014, 6:17am UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/9 "2014-06-19T06:17:54Z")

</div>

As a test, I resetup my whole computer and installed the engine again, but I just had to add a panner and he started compiling again…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 21, 2014, 2:49pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/10 "2014-06-21T14:49:16Z")

</div>

Hi ,

It appears that this is a known issue and it is currently under assessment to find a suitable fix.

---

<div class="post-metadata">

**Author:** ![reinux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reinux](https://forums.unrealengine.com/u/reinux)\
**Post date:** [June 27, 2014, 1:31am UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/11 "2014-06-27T01:31:10Z")

</div>

Is there a workaround? I have the same issue in both 4.2.1 and 4.1.2.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 27, 2014, 1:51pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/12 "2014-06-27T13:51:56Z")

</div>

At present no, we are assessing the bug and will let the public know when we do have a workaround or a fix available.

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 27, 2014, 2:10pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/13 "2014-06-27T14:10:36Z")

</div>

If this helps and you don’t know it, I couldn’t really test it, but I think this doesn’t appear on Windows 7, just on Windows 8.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 27, 2014, 5:40pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/14 "2014-06-27T17:40:18Z")

</div>

Thank you for the information, I will add a note into the bug report!

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 27, 2014, 10:08pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/15 "2014-06-27T22:08:08Z")

</div>

Okay, I think I solved the problem for me. At the moment it works, I had to deactivate the real time protection of GData for the engine. I guess while it’s compiling shaders the engine changes a lot of files, which causes GData to slow everything down.

---

<div class="post-metadata">

**Author:** ![reinux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reinux](https://forums.unrealengine.com/u/reinux)\
**Post date:** [June 27, 2014, 10:29pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/16 "2014-06-27T22:29:03Z")

</div>

@ Can you elaborate? When you say GData, do you mean disabling Windows Defender from checking game data?

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 27, 2014, 10:51pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/17 "2014-06-27T22:51:09Z")

</div>

Not exactly, I never thought I have to explain to somebody what GData is. [https://www.gdata.de/](https://www.gdata.de/)

[http://imageshack.com/a/img820/6753/bbm4.png](http://imageshack.com/a/img820/6753/bbm4.png)

Short: GData is an antivirus program, it’s real time protection is checking the files while the engine is compiling to make sure that everything is alright. This slows the whole system down, because it uses around 60% of the CPU. It’s unusual for GData to cause problems, due to that fact I didn’t think about it earlier.

---

<div class="post-metadata">

**Author:** ![reinux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reinux](https://forums.unrealengine.com/u/reinux)\
**Post date:** [June 27, 2014, 10:55pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/18 "2014-06-27T22:55:37Z")

</div>

Ahh, thanks. Must be a different problem for me then, because I tried disabling Windows Defender with the same suspicion and had no success.

---

<div class="post-metadata">

**Author:** ![Skullwing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skullwing](https://forums.unrealengine.com/u/Skullwing)\
**Post date:** [June 27, 2014, 10:58pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/19 "2014-06-27T22:58:52Z")

</div>

Maybe you have another program installed which checks files?

---

<div class="post-metadata">

**Author:** ![reinux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reinux](https://forums.unrealengine.com/u/reinux)\
**Post date:** [June 27, 2014, 11:33pm UTC](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810/20 "2014-06-27T23:33:29Z")

</div>

Yeah, possibly, though I turned off everything I could think of and moved the project onto an SSD and it’s still doing the same thing… hmm…

[Next page](https://forums.unrealengine.com/t/shaders-compile-after-nearly-every-material-alteration/285810.md?page=2)
