# Compiling Shaders doesn't work (stuck with no progress)

**URL:** <https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [November 6, 2019, 12:30am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045 "2019-11-06T00:30:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![badziubadziu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@badziubadziu](https://forums.unrealengine.com/u/badziubadziu)\
**Post date:** [November 6, 2019, 12:30am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/1 "2019-11-06T00:30:47Z")

</div>

Hi,  
Since 4.21, UE4 shader compilation simply doesn’t work. Whenever “Compiling Shaders” notification comes up, it stays there forever without counting down the number of shader to compile.  
Looking at task manager, there is another UE4Editor.exe process that is “not responding”.  
I suspect some local configuration (perhaps something stored in user directory) can be the problem.  
The engine is unusable currently for me.

If anyone has any help or suggestions, I would appreciate it.

Thanks

---

<div class="post-metadata">

**Author:** ![Dekrayzis2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dekrayzis2015](https://forums.unrealengine.com/u/Dekrayzis2015)\
**Post date:** [November 29, 2019, 9:00pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/2 "2019-11-29T21:00:54Z")

</div>

I have the exact same issue.  
I was using UE4.22, recently installed UE4.23. I’ve tried using another version of UE4 such as UE4.21 & 4.19 which used to work fine. Same thing now.

I have uninstalled all versions of UE4 and reinstalled. Even rebooting the machine. Created one of the sample projects included with UE4 and the “Compiling Shaders (116)” notification comes up and it just stays there forever without counting down. Have had the PC on now with this message for over 24 hours. Any ideas people?

---

<div class="post-metadata">

**Author:** ![Dekrayzis2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dekrayzis2015](https://forums.unrealengine.com/u/Dekrayzis2015)\
**Post date:** [November 30, 2019, 10:40pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/3 "2019-11-30T22:40:27Z")

</div>

After searching for hours on google and the forums; I found the solution.

1. Open the file “C:\Program Files\Epic Games\UE\_4.XX\Engine\Config\ConsoleVariables.ini” in any text editor.
2. Find the line “; r.XGEShaderCompile = 0” and remove the “;” at the beginning of the line and delete it.
3. Then just restart the editor.

After restarting the editor “Compiling Shaders” starts working properly again.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a189b876](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a189b876](https://forums.unrealengine.com/u/anonymous_user_a189b876)\
**Post date:** [December 1, 2019, 1:54am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/4 "2019-12-01T01:54:27Z")

</div>

> [@badziubadziu](#):
>
> Hi,  
> Since 4.21, UE4 shader compilation simply doesn’t work. Whenever “Compiling Shaders” notification comes up, it stays there forever without counting down the number of shader to compile.  
> Looking at task manager, there is another UE4Editor.exe process that is “not responding”.  
> I suspect some local configuration (perhaps something stored in user directory) can be the problem.  
> The engine is unusable currently for me.
> 
> If anyone has any help or suggestions, I would appreciate it.
> 
> Thanks

probly jst lag… try nt fr broadcast while building world, or if u opn windows, jst close it… should hv no problems… i use UE fr like 3-6hours per days fr learne, no problem at all, even if compile 1k texture or shaders… but a bit lag when it come to lighting or animations, whch why i use blender first, then jst import to the world

dyd jst now:

still learne project 10 lvl 1  
ignore the errors frm video, should use 2 windows, but i use 1(viewpot view) XD

---

<div class="post-metadata">

**Author:** ![badziubadziu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@badziubadziu](https://forums.unrealengine.com/u/badziubadziu)\
**Post date:** [December 13, 2019, 5:45am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/5 "2019-12-13T05:45:51Z")

</div>

> [@](#):
>
> After searching for hours on google and the forums; I found the solution.
> 
> 1. Open the file “C:\Program Files\Epic Games\UE\_4.XX\Engine\Config\ConsoleVariables.ini” in any text editor.
> 2. Find the line “; r.XGEShaderCompile = 0” and remove the “;” at the beginning of the line and delete it.
> 3. Then just restart the editor.
> 
> After restarting the editor “Compiling Shaders” starts working properly again.

My man, you are the real MVP.  
This solved my problem, shaders are compiling now, thank you very much.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cbdc83411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cbdc83411](https://forums.unrealengine.com/u/anonymous_user_cbdc83411)\
**Post date:** [December 30, 2019, 7:20pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/6 "2019-12-30T19:20:12Z")

</div>

Thank you \*\* 🙂

I had the same issus in 4.24 when I start a new top down template \*\*

---

<div class="post-metadata">

**Author:** ![SaxonRah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaxonRah](https://forums.unrealengine.com/u/SaxonRah)\
**Post date:** [January 29, 2020, 3:19am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/7 "2020-01-29T03:19:09Z")

</div>

> [@](#):
>
> After searching for hours on google and the forums; I found the solution.
> 
> 1. Open the file “C:\Program Files\Epic Games\UE\_4.XX\Engine\Config\ConsoleVariables.ini” in any text editor.
> 2. Find the line “; r.XGEShaderCompile = 0” and remove the “;” at the beginning of the line and delete it.
> 3. Then just restart the editor.
> 
> After restarting the editor “Compiling Shaders” starts working properly again.

- ∞

In 4.24.1 the line you are looking for is

> [@](#):
>
> ;r.XGEShaderCompile = 0

It’s missing a space, it eluded me b/c i was using ctrl-f XD

---

<div class="post-metadata">

**Author:** ![Grigorescu\_Marian\_Stelian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grigorescu\_Marian\_Stelian](https://forums.unrealengine.com/u/Grigorescu_Marian_Stelian)\
**Post date:** [March 19, 2020, 7:53am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/8 "2020-03-19T07:53:40Z")

</div>

I have another problem. Suddenly, my shader is not compiling at all. I have a landscape material that was compiled again and again and now nothing happens and my landscape went all default material. I did nothing to the material at all. Nothing shows up on my screen, no process starts, I have 4.24.2. All this codes and all this fuzz and still there is no stable SOFTWARE in sight…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dc6ac313](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dc6ac313](https://forums.unrealengine.com/u/anonymous_user_dc6ac313)\
**Post date:** [March 24, 2020, 5:14am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/9 "2020-03-24T05:14:17Z")

</div>

> [@](#):
>
> probly jst lag… try nt fr broadcast while building world, or if u opn windows, jst close it… should hv no problems… i use UE fr like 3-6hours per days fr learne, no problem at all, even if compile 1k texture or shaders… but a bit lag when it come to lighting or animations, whch why i use blender first, then jst import to the world
> 
> dyd jst now:
> 
> still learne project 10 lvl 1  
> ignore the errors frm video, should use 2 windows, but i use 1(viewpot view) XD

type normally it’s hard to understand you

---

<div class="post-metadata">

**Author:** ![Sinthramyr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sinthramyr](https://forums.unrealengine.com/u/Sinthramyr)\
**Post date:** [May 30, 2020, 12:41pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/10 "2020-05-30T12:41:07Z")

</div>

> [@](#):
>
> After searching for hours on google and the forums; I found the solution.
> 
> 1. Open the file “C:\Program Files\Epic Games\UE\_4.XX\Engine\Config\ConsoleVariables.ini” in any text editor.
> 2. Find the line “; r.XGEShaderCompile = 0” and remove the “;” at the beginning of the line and delete it.
> 3. Then just restart the editor.
> 
> After restarting the editor “Compiling Shaders” starts working properly again.

This also resolved my issue big time. After I tried installing 4.25 compiling shaders started freezing and crashing my computer. I wasn’t even able to use the Materials editor without it crashing, and couldn’t get any previews done and my landscaping was a joke too.

One simple deleted semicolon and we’re back in business. 🙂

---

<div class="post-metadata">

**Author:** ![pabitrapadhy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pabitrapadhy/32/495176_2.png) [@pabitrapadhy](https://forums.unrealengine.com/u/pabitrapadhy)\
**Post date:** [May 31, 2020, 11:48am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/11 "2020-05-31T11:48:55Z")

</div>

Removing the semi-colon is not an actual fix right ?  
All it’s doing is not allowing the shaders to compile.

It’s just a workaround to minimize the time, what if someone actually want the shader to be compiled ?  
I’m sure there might be other options to force compile the shaders, but what is the significance of this option then ?

---

<div class="post-metadata">

**Author:** ![YOUMADD3N](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YOUMADD3N](https://forums.unrealengine.com/u/YOUMADD3N)\
**Post date:** [June 1, 2020, 3:38pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/12 "2020-06-01T15:38:32Z")

</div>

YES! Thank you! I’ve been struggling with this issue for a while now. (Since 4.19?) I use an Intel Core i9 7980XE at work which has 18 cores - 36 logical and until I found this fix I was stuck only using a couple of cores to compile shaders. Now when I open task manager I see it using all 36 and 100% CPU usage!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1cb78b8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1cb78b8](https://forums.unrealengine.com/u/anonymous_user_a1cb78b8)\
**Post date:** [June 10, 2020, 6:02pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/13 "2020-06-10T18:02:19Z")

</div>

Tried removing the semi colon and It seemed to be helping but just gets stuck at this…no progress and seems to stop compiling.

.

 ![unreal compiling issue.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/7/97f45dd5634299d596e5d1311bd0e860c3a4354f.jpeg)

---

<div class="post-metadata">

**Author:** ![S-ed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-ed/32/1194558_2.png) [@S-ed](https://forums.unrealengine.com/u/S-ed)\
**Post date:** [July 30, 2020, 1:40pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/14 "2020-07-30T13:40:06Z")

</div>

> [@anonymous\_user\_a1cb78b8](#):
>
> Tried removing the semi colon and It seemed to be helping but just gets stuck at this…no progress and seems to stop compiling.
> 
> .
> 
> ![unreal compiling issue.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/7/97f45dd5634299d596e5d1311bd0e860c3a4354f.jpeg)

It’s not compiling. This is another issue. Your landscape material. Google for “checkerboard landscape ue4”.

---

<div class="post-metadata">

**Author:** ![EdrSantandr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EdrSantandr](https://forums.unrealengine.com/u/EdrSantandr)\
**Post date:** [August 29, 2020, 1:40pm UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/15 "2020-08-29T13:40:27Z")

</div>

> [@](#):
>
> After searching for hours on google and the forums; I found the solution.
> 
> 1. Open the file “C:\Program Files\Epic Games\UE\_4.XX\Engine\Config\ConsoleVariables.ini” in any text editor.
> 2. Find the line “; r.XGEShaderCompile = 0” and remove the “;” at the beginning of the line and delete it.
> 3. Then just restart the editor.
> 
> After restarting the editor “Compiling Shaders” starts working properly again.

Thanks man!!

---

<div class="post-metadata">

**Author:** ![SuperTN33](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SuperTN33](https://forums.unrealengine.com/u/SuperTN33)\
**Post date:** [February 3, 2021, 3:34am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/16 "2021-02-03T03:34:46Z")

</div>

This doesn’t seem to work with UE\_4.26 as no shaders are compiling and everytime I save a material the editor freezes however this problem can be fixed in all versions prior to 4.26 but is there an additional line or something? How can I fix this problem in 4.26?

---

<div class="post-metadata">

**Author:** ![Dekrayzis2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dekrayzis2015](https://forums.unrealengine.com/u/Dekrayzis2015)\
**Post date:** [June 6, 2021, 6:41am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/17 "2021-06-06T06:41:56Z")

</div>

I just switched to 4.26 and had the same problem. Started playing around with settings in the consoleVariables.ini file. Seems have to remove “;” from the lines with r.ShaderDevelopmentMode = 1 & r.XGEShaderCompile = 0.  
Shaders compiles slowly but it doesn’t appear to be stuck anymore.

---

<div class="post-metadata">

**Author:** ![ScroogeMcDuck1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scroogemcduck1/32/88717_2.png) [@ScroogeMcDuck1](https://forums.unrealengine.com/u/ScroogeMcDuck1)\
**Post date:** [August 26, 2021, 4:07am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/18 "2021-08-26T04:07:26Z")

</div>

In 4.26.2 I had to remove the semicolon before “r.XGEShaderCompile = 0” AND “r.Shaders.AllowCompilingThroughWorkers=0” then shaders compiled after restarting the Editor.

---

<div class="post-metadata">

**Author:** ![thebutchsta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thebutchsta](https://forums.unrealengine.com/u/thebutchsta)\
**Post date:** [December 3, 2021, 2:07am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/19 "2021-12-03T02:07:09Z")

</div>

Me Too this was the only thing that worked after hours of struggle. However I would like to actually compile my shaders in order to submit a build demo. Does anybody know a workaround for unfreezing slow compilation and still making sure they actually compile? I have an I9 and 3080-ti so I can’t imagine its my hardware especially since the project I am working on is not particularly graphically intensive. If anyone can think of anything I would very much appreciate it! Thanks!

---

<div class="post-metadata">

**Author:** ![DreamsN2Reality](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DreamsN2Reality](https://forums.unrealengine.com/u/DreamsN2Reality)\
**Post date:** [December 16, 2021, 2:09am UTC](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045/20 "2021-12-16T02:09:55Z")

</div>

I was having an issue compiling shaders when i was packaging and getting alot of errors. I looked up the errors and it referred to Visual Studio not being up to date it seemed. Not sure if looking into what to download for visual studio would help just a thought.

2021-12-15T05:00:00Z

[Next page](https://forums.unrealengine.com/t/compiling-shaders-doesnt-work-stuck-with-no-progress/133045.md?page=2)
