Hi Jimbohalo10,
could you please give me an advice.
I have
- downloaded Ue5 branch from git
- do setup.bat
- GenerateProjectFiles.bat -2022 ( to force create vs 2022 project files )
the specs of my pc:
- win 10
- super fast ssd with 500 gbyte free memory
- ryzen 5900 ( 12 core cpu )
- 16 gbyte RAM
My Problem: compilation of a e.g. debug gameeditor is very slow
e.g. with this build log i can verify that 2022 toolchain is used:
…
Parsing headers for UnrealEditor
13> Running UnrealHeaderTool UnrealEditor “C:\unreal2\Engine\Intermediate\Build\Win64\UnrealEditor\Debug\UnrealEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\unreal2\Engine\Programs\UnrealBuildTool\Log_UHT.txt”
13>Reflection code generated for UnrealEditor in 8,8303405 seconds
13>Creating makefile for ShaderCompileWorker (no existing makefile)
13>Parsing headers for ShaderCompileWorker
13> Running UnrealHeaderTool ShaderCompileWorker “C:\unreal2\Engine\Intermediate\Build\Win64\ShaderCompileWorker\Development\ShaderCompileWorker.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\unreal2\Engine\Programs\UnrealBuildTool\Log_UHT.txt”
13>Reflection code generated for ShaderCompileWorker in 0,2307619 seconds
13>Building UnrealEditor and ShaderCompileWorker…
13>Using Visual Studio 2022 14.30.30705 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705) and Windows 10.0.20348.0 SDK (C:\Program Files (x86)\Windows Kits\10).
…
Determining max actions to execute in parallel (12 physical cores, 24 logical cores)
13> Executing up to 12 processes, one per physical core
13> Requested 1,5 GB free memory per action, 8,11 GB available: limiting max parallel actions to 5
13>Building 5673 actions with 5 processes…
13>[1/5673] Resource Default.rc2
13>[2/5673] Compile MiMalloc.c
13>[3/5673] Compile PCH.Core.cpp
13>[4/5673] Compile SharedPCH.CoreUObject.ShadowErrors.cpp
…
the compiler reserves 1,5 gbyte per action so only 5 parallel compiling threads are running.
to me this seems very conservative, because the whole time there a serveral gbytes of free ram acording to the resource monitor.
as i see, your pc also has 16 gbyte ram but seems to compile much faster, does your pc use maximul cores you have ?
Compiling time is at least 3 hours, that is so frustrating
Many thanks for every advice you have