# Stuck on compiling shaders on first load

**URL:** <https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488>\
**Category:** Getting Started & Setup\
**Tags:** compiling-shaders, stuck, unreal-engine, UE5-0, question\
**Created:** [April 6, 2022, 12:29am UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488 "2022-04-06T00:29:06Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![madmandrit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@madmandrit](https://forums.unrealengine.com/u/madmandrit)\
**Post date:** [April 6, 2022, 12:29am UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/1 "2022-04-06T00:29:06Z")

</div>

Trying out UE5 for the first time on my M1 Max and it’s been stuck on compiling shaders for awhile now. Is this something that only happens on first load or is there something I need to do to fix it?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/9/cf9e64dcc8d9331005f01b891c73ee5632b7d8f4.jpeg)

---

<div class="post-metadata">

**Author:** ![DalemaDalema1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DalemaDalema1](https://forums.unrealengine.com/u/DalemaDalema1)\
**Post date:** [April 6, 2022, 7:21am UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/2 "2022-04-06T07:21:32Z")

</div>

![Screen Shot 2022-04-06 at 12.55.05](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/0/b20242f4fcfd224377fc5febfb4fd11f15cd3867.jpeg)  
same problem. It took 50 minutes to reach only 45 percent.

---

<div class="post-metadata">

**Author:** ![GarielSd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarielSd](https://forums.unrealengine.com/u/GarielSd)\
**Post date:** [April 6, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/3 "2022-04-06T16:00:32Z")

</div>

Same here. I 'm creating the default vr project, it stays at 45 percent compiling headers for at least 40 minutes. When it finally ends and the project starts, it begins to compile about 7000 headers a second time, taking forever again.

My specs: i7 11th Gen, Nvidia 3060, 16 gb ram, win 10 home.

---

<div class="post-metadata">

**Author:** ![AggressiveMaster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aggressivemaster/32/1089431_2.png) [@AggressiveMaster](https://forums.unrealengine.com/u/AggressiveMaster)\
**Post date:** [April 6, 2022, 10:09pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/4 "2022-04-06T22:09:13Z")

</div>

RAM - need LOTS - and Drive space… I have 32GB of 4133 and I wasnt able to get anywhere without enabling 64 GIGs of VRAM for a total of 96GB. Also, the Characters have 30,000 shaders alone, so try opening a empty level and just the player and let thoes compile … before launching the small level map…

---

<div class="post-metadata">

**Author:** ![Steele\_702](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steele\_702](https://forums.unrealengine.com/u/Steele_702)\
**Post date:** [April 8, 2022, 5:36am UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/5 "2022-04-08T05:36:54Z")

</div>

Same here on a first install. Also stuck at 34%… strange. I’m loading it up on my newer Alienware laptop so it’s gotta work on _one_ of these machines lol

2019 MBP 8 core i9 2.3ghz | 32gb RAM | Radeon Pro Vega 20 1.5gb VRAM + Intel UHD Graphics 630

---

<div class="post-metadata">

**Author:** ![Aberlow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aberlow](https://forums.unrealengine.com/u/Aberlow)\
**Post date:** [April 22, 2022, 3:36am UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/6 "2022-04-22T03:36:17Z")

</div>

Anyone get a solution to this? Im also stuck on 34%

2021 MBP M1 Max| 32gb ram

---

<div class="post-metadata">

**Author:** ![Joel\_Kreider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joel\_Kreider](https://forums.unrealengine.com/u/Joel_Kreider)\
**Post date:** [April 22, 2022, 4:08pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/7 "2022-04-22T16:08:42Z")

</div>

Can Confirm… 1st Load. 34% and holding.  
Started around 10:40am.

Heyy, 45%  
at 10:53am.

\*Loaded at 11:00am  
Must take a bit. Hopefully not every time.

iMac (Retina 5K, 27-inch, Late 2015  
4 GHz Quad-Core Intel Core i7  
32 GB 1600 MHz DDR3  
MD Radeon R9 M395 2 GB

---

<div class="post-metadata">

**Author:** ![Joel\_Kreider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joel\_Kreider](https://forums.unrealengine.com/u/Joel_Kreider)\
**Post date:** [April 22, 2022, 4:46pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/8 "2022-04-22T16:46:40Z")

</div>

Update:

Started Archvis Template Project… 11:05ish  
Back to Compiling Shaders @anonymous_user_33d86db7% (4000+ to go)

(2500+ @ 11:11am)  
(600+ @ 11:18am)

45% @ 11:20 (1400+)  
(900+ @ 11:22)  
(200+ @ 11:25)

Initializing 71% @ 11:27

\*Loaded @ 11:28am

Slowly loading things and blinking this message:

 ![Screen Shot 2022-04-22 at 11.30.35 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/4/7c412966734350f274f2f6a3c8ee629ca9ebb184.jpeg)

Stopped blinking message around 11:40am. But things are excessively jerky, for all things compute at the moment. Even my cursor is delayed.

Activity Monitor: Shaders taking up CPUs but overall around 75%. Must be intense on the GPU.

 ![Screen Shot 2022-04-22 at 11.42.26 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/5/68542b12ddf237001f2769ae5552617e076b4f01.png)

---

<div class="post-metadata">

**Author:** ![mikeymikey99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mikeymikey99](https://forums.unrealengine.com/u/mikeymikey99)\
**Post date:** [May 24, 2022, 10:54am UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/9 "2022-05-24T10:54:50Z")

</div>

what I did to solve it was manually change raytracing to false. you can do this by going to the project files location \> config file and opened DefaultEngine.ini with notepad and changed r.RayTracing to false. you can find it quickly with ctrl + f in notepad.

---

<div class="post-metadata">

**Author:** ![Thiago.Unreal](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thiago.unreal/32/875103_2.png) [@Thiago.Unreal](https://forums.unrealengine.com/u/Thiago.Unreal)\
**Post date:** [May 25, 2022, 10:50pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/10 "2022-05-25T22:50:07Z")

</div>

the problem is that as soon you need it, and you enable it, the same will happen.  
The first time you lunch a project this will always happens…take time and depends on how fast your hard drive is, how much memory you have and how much free space you got.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5edb38aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5edb38aa](https://forums.unrealengine.com/u/anonymous_user_5edb38aa)\
**Post date:** [July 24, 2022, 1:31pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/11 "2022-07-24T13:31:14Z")

</div>

One problem I had was with mds\_stores which is Spotlight and it was trying to index UE5 files as it was compiling the shaders, used a LOT of CPU! There’s a solution to this on Stack Overflow: [macbook pro - mds and mds\_stores constantly consuming cpu - Ask Different](https://apple.stackexchange.com/questions/144474/mds-and-mds-stores-constantly-consuming-cpu)

I added the UE5 folder to the Spotlight Privacy settings to avoid indexing which allowed more CPU to be used by UE5 and then it got through the process fine.

---

<div class="post-metadata">

**Author:** ![Brantarr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brantarr](https://forums.unrealengine.com/u/Brantarr)\
**Post date:** [August 10, 2022, 2:02am UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/12 "2022-08-10T02:02:28Z")

</div>

Thanks for the tip!

I added UE5 folder to Spotlight Privacy settings and saw a drop in CPU for the ShaderCompileWorker processes.

Here are the file paths:

```auto
/Users/Shared/UnrealEngine
/Users/Shared/Epic Games/UE_5.4

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a21d5ee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a21d5ee1](https://forums.unrealengine.com/u/anonymous_user_a21d5ee1)\
**Post date:** [November 2, 2022, 3:05pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/13 "2022-11-02T15:05:06Z")

</div>

same here, stuck at 45%, it seems a Raytracing issue

---

<div class="post-metadata">

**Author:** ![pedroamarocosta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedroamarocosta](https://forums.unrealengine.com/u/pedroamarocosta)\
**Post date:** [November 14, 2022, 5:21pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/14 "2022-11-14T17:21:35Z")

</div>

Hey guys, I think this solves it, at least for 5.0.0. On opening old (just few months older actually) projects, I had the load up screen virtually stuck for hours at compiling shaders. Then I created a new project and compared all file contents between the two. Turns out the older project has these two lines in its **Unreal Projects\MyProject\Config\DefaultEngine.ini** :

> r.SkinCache.CompileShaders=True  
> r.RayTracing=True

These lines are not automatically defined anymore for newer projects. Remove them (or just put them both to ‘False’). It should not get blocked again at compiling shaders now.

PS: So yes, the issue seems to be solved not at performance level (increasing the number of workers/threads) but requiring a complete shutdown of shader compilation and/or ray-tracing on startup.

---

<div class="post-metadata">

**Author:** ![housDouth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@housDouth](https://forums.unrealengine.com/u/housDouth)\
**Post date:** [December 24, 2022, 8:13pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/15 "2022-12-24T20:13:09Z")

</div>

![Screenshot 2022-12-24 at 4.49.30 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/5/eb51b9881aa145b0f6b1933b5898fc7b3251b7b9.jpeg)

Sorry that I don’t have a solution to add - but I wanted to share that I am also on an M1 Max and installing UE5 on it for the first time and also got stuck on 34%.

4.40pm Started opening UE5 for first time  
4.50pm Stuck on 34%  
5.30pm Finally 45%  
5.55pm (Over one hour later) - Suddenly finished

In conclusion: M1 Max users: it just takes a very long time to compile. The number in brackets will eventually go down. It will compile.

---

<div class="post-metadata">

**Author:** ![Mr.TheSaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr.TheSaw](https://forums.unrealengine.com/u/Mr.TheSaw)\
**Post date:** [February 5, 2023, 8:07pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/16 "2023-02-05T20:07:16Z")

</div>

I just got 5.1. Same behavior. I’m using an M1 iMac, raytracing is not mentioned in the DefaultEngine.ini. Took a bunch of time to even start the editor, and a similar amount of time to open a new project based on the FPS template.

I understand that compiling shaders is a thing which needs to happen, but I don’t understand why it needs to happen every time I start a new project, especially since I haven’t even selected any at all.

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [March 12, 2023, 12:59pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/17 "2023-03-12T12:59:48Z")

</div>

If this happens every time you start a new project, there is a problem. Perhaps it is an issue with permission and the hard drive or the cache. I suggest having a closer look at that.

---

<div class="post-metadata">

**Author:** ![RudaFelker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RudaFelker](https://forums.unrealengine.com/u/RudaFelker)\
**Post date:** [May 8, 2023, 10:10pm UTC](https://forums.unrealengine.com/t/stuck-on-compiling-shaders-on-first-load/514488/18 "2023-05-08T22:10:50Z")

</div>

Hi everyone,

Today I launched UE5.1.1 and it loaded a random project within a couple of seconds, no shader problems, nothing. Then I decided to test out the car configurator project from the marketplace (purelly out of fun), the marketplace said that it wasn’t compatible with 5.1 (but it mentioned that it was, but whatever). I loaded it up on 5.0.3 and it worked normaly. After powering of and coming back later all of my other projects were still fine and loaded with no **compiling shader** wait time, but I accidentaly launched the car configurator project with 5.1.1 and the message said something about copying 5.0 to 5.1 (honestly I don’t remember the details). The project took about 20minutes instead of a couple of seconds and suddendly all of my other projects were **compiling shaders** for an hour (+8000) shaders even though there was nothing there and was a very small project.

My fix was deleting the car configurator project from my pc and it fixed everything. I honestly do not know why it worked, but it did. So I hope that this heleps someone who has a similar issue…

NOTE: This is a repost from another post: [How is this acceptable? (compiling 8000+ shaders on a brand new installation) - #67 by RudaFelker](https://forums.unrealengine.com/t/how-is-this-acceptable-compiling-8000-shaders-on-a-brand-new-installation/501146/67)
