# Building UE5 from source takes 12h. How can I fix this?

**URL:** <https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182>\
**Category:** Getting Started & Setup\
**Tags:** source-build, source, build, unreal-engine, UE5-0, question\
**Created:** [March 31, 2022, 10:42am UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182 "2022-03-31T10:42:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinstand](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinstand](https://forums.unrealengine.com/u/Vinstand)\
**Post date:** [March 31, 2022, 10:42am UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/1 "2022-03-31T10:42:31Z")

</div>

Hi, I wanted to test out UE5 so I cloned the 5.0 branch from GitHub, then clicked on the Setup.bat, then GenerateProjectFiles.bat and then opened the UE5.sln in VS 2022. There I selected Development Editor and Win64. In short, I followed the [documentation](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/DevelopmentSetup/BuildingUnrealEngine/) and README in GitHub. However, it says there that compiling the engine should take between 10 and 40 minutes, and although I don’t have a bad PC, it takes me between 8 and 14 hours. Why and how can I solve this?

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [March 31, 2022, 10:51am UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/2 "2022-03-31T10:51:15Z")

</div>

First give more information (like hardware specs), maybe check if there is no coin miner running in background that invited self with latest “must click me.exe” file.

Else it is all guessing. Unless ppl confirm that latest build indeed takes 12+ hours.

---

<div class="post-metadata">

**Author:** ![Vinstand](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinstand](https://forums.unrealengine.com/u/Vinstand)\
**Post date:** [March 31, 2022, 11:03am UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/3 "2022-03-31T11:03:46Z")

</div>

Nothing is running in the background, but VS doesn’t go to 100% hardwear usage either. My Hardwear:  
CPU AMD Ryzen 5 2600X  
RAM 16 GB  
GPU AMD Radeon RX 580  
SSD  
No longer the best PC, but not that bad either.

---

<div class="post-metadata">

**Author:** ![guyal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@guyal](https://forums.unrealengine.com/u/guyal)\
**Post date:** [March 31, 2022, 11:11am UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/4 "2022-03-31T11:11:07Z")

</div>

I’m seeing around 40 minutes for an i7-11700K, 3.6 GHz with 64GB RAM and SSD. The i7-3960 is more in the 12 hour range. So yes, start by looking at supply and demand, i.e. hardware specs and if any processes are using up a lot of the resources.

---

<div class="post-metadata">

**Author:** ![penboack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@penboack](https://forums.unrealengine.com/u/penboack)\
**Post date:** [April 1, 2022, 12:54pm UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/5 "2022-04-01T12:54:22Z")

</div>

It is very likely that the very long build time is a result of insufficient RAM, 16GB is not very much.

---

<div class="post-metadata">

**Author:** ![Vinstand](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinstand](https://forums.unrealengine.com/u/Vinstand)\
**Post date:** [April 2, 2022, 10:59am UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/6 "2022-04-02T10:59:46Z")

</div>

I have finally found a solution. Because I had read somewhere that VS 2022 also works, I used it. When I used VS 2019, everything went much faster.

---

<div class="post-metadata">

**Author:** ![TheThiefMaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheThiefMaster](https://forums.unrealengine.com/u/TheThiefMaster)\
**Post date:** [April 2, 2022, 7:15pm UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/7 "2022-04-02T19:15:09Z")

</div>

Also make sure you are just building your project (or UE4/5 for a non-source project) and not “build solution”.

---

<div class="post-metadata">

**Author:** ![neighborlee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neighborlee/32/1108786_2.png) [@neighborlee](https://forums.unrealengine.com/u/neighborlee)\
**Post date:** [January 31, 2024, 4:34pm UTC](https://forums.unrealengine.com/t/building-ue5-from-source-takes-12h-how-can-i-fix-this/511182/8 "2024-01-31T16:34:19Z")

</div>

maybe not related, but how do I set Xcode 15.2, to literally show me, the code, in editor pane, as its compiling ?

thx
