# First load/compile of the day extremely slow?

**URL:** <https://forums.unrealengine.com/t/first-load-compile-of-the-day-extremely-slow/375962>\
**Category:** C++\
**Tags:** launching, compiling, unreal-engine, slow, question, CPP\
**Created:** [November 10, 2016, 4:05pm UTC](https://forums.unrealengine.com/t/first-load-compile-of-the-day-extremely-slow/375962 "2016-11-10T16:05:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juice-Tin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juice-tin/32/1008648_2.png) [@Juice-Tin](https://forums.unrealengine.com/u/Juice-Tin)\
**Post date:** [November 10, 2016, 4:05pm UTC](https://forums.unrealengine.com/t/first-load-compile-of-the-day-extremely-slow/375962/1 "2016-11-10T16:05:19Z")

</div>

Hello, the first time I launch unreal for the day takes about 25 minutes. (binary UE4, from the launcher)

Launching the game after that (from crash or manual restart) is about 30 seconds.  
Same happens with compiling the c++. First compile takes up to 15 minutes even without any changes.

I heard somewhere this shouldn’t happen and I may be losing some cached files when I restart my PC.

Is there any way to fix this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Gildor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gildor](https://forums.unrealengine.com/u/Gildor)\
**Post date:** [November 13, 2016, 1:38pm UTC](https://forums.unrealengine.com/t/first-load-compile-of-the-day-extremely-slow/375962/2 "2016-11-13T13:38:43Z")

</div>

Compiled Unreal engine has extremely large .pch (precompiled header files). If these files are not in your RAM cache, compiler will spend relatively long time loading them into the memory. To avoid this dependency I’ve put all Unreal engine files to SSD, this eliminated any build time dependency from number of builds before now.

---

<div class="post-metadata">

**Author:** ![Juice-Tin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juice-tin/32/1008648_2.png) [@Juice-Tin](https://forums.unrealengine.com/u/Juice-Tin)\
**Post date:** [November 14, 2016, 3:04pm UTC](https://forums.unrealengine.com/t/first-load-compile-of-the-day-extremely-slow/375962/3 "2016-11-14T15:04:47Z")

</div>

Hey Gildor, I don’t understand how moving the unreal engine to SSD eliminated build time dependency. Do you mean it’s just much faster now because of SSD? Or were there also some other steps you took? I don’t have an SSD so I’d love to know if it’s possible to fix without one.

---

<div class="post-metadata">

**Author:** ![Gildor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gildor](https://forums.unrealengine.com/u/Gildor)\
**Post date:** [November 14, 2016, 3:07pm UTC](https://forums.unrealengine.com/t/first-load-compile-of-the-day-extremely-slow/375962/4 "2016-11-14T15:07:32Z")

</div>

Hi. I didn’t mean “eliminated build time” dependency. It eliminates time required for OS to read huge amount of data from HDD to RAM, which causes very slow build for the first time after reboot. It is not possible to “fix” this, just because OS must read these data from disk. When you’re building project again, you’ll have these data in RAM cache, so compiler will not spend any time reading data from disk.
