[SOLVED] Extremely insane and slow build times!?

So, I think it is not normal but when I make trivial changes it takes approx 10 -12 hours to compile a project from source (local windows debugger) on VS 2019 and VS 2017. When I’ve tried the unreal extension sometimes it takes between 8 and 15 minutes (only in VS 2017).

I’ve run tests and my pc seems to be fine (it’s new), and runs the engine normally. I 've tested other software and works great. My general pc specs are:

Lenovo Thinkcentre i7 7700 @3.6 GHz.
8 gb of RAM.
4 cores/ 8 logical processors.
Hyperthreading on.

My build config is this:


<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
       <BuildConfiguration>
            <MinFilesUsingPrecompiledHeader>1</MinFilesUsingPrecompiledHeader>
            <bAllowParallelExecutor>true</bAllowParallelExecutor>
       </BuildConfiguration>
       <ParallelExecutor>
            <MaxProcessorCount>8</MaxProcessorCount>
            <ProcessorCountMultiplier>2</ProcessorCountMultiplier>
       </ParallelExecutor>
       <LocalExecutor>
            <ProcessorCountMultiplier>2</ProcessorCountMultiplier>
            <MaxProcessorCount>8</MaxProcessorCount>
      </LocalExecutor>
</Configuration>

On my build.cs I’ve put this:


 bUseUnity = true; 

When using local windows debugger my outpul log ends like this:



1>---------------------- Done ----------------------
1>
1> Rebuild All: 1 succeeded, 0 failed, 0 skipped
1>
1>Total time in XGE executor: 41104.33 seconds
1>Total execution time: 41367.60 seconds
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Please help me :'v

Edit: I’m using the previous promoted branch of the engine.

  1. don’t change the engine if possible

  2. if you must, try FastBuild

http://knownshippable.com/blog/2017/…real-engine-4/

http://knownshippable.com/blog/2017/…ngine-4-setup/

http://knownshippable.com/blog/2017/…caching-setup/

http://knownshippable.com/blog/2017/…ibution-setup/

Thanks, I’ll try it when needed.

So I managed to solve it by adding 32 GB of ram, and 1TB of a SATA SSD. I installed VS and UE on the SSD, and the OS remained on my HDD. Now from 18 hours (worst timing) or 11 hours (best timing), I got 1 hour and 17 minutes. It seems there was a bottleneck on my HDD.

Also uninstall incredibuild, unless you

  • actually have multiple computers in your network with the agent software installed
  • actually have bought a license for all of these

UBT will already parallelize a local build to the maximum possible. You are only making your build slower.