I downloaded UE 5.1.1 source from GitHub in order to compile a standalone Editor that could be copied to different machines. Long story. The problem is that upon compile the Engine folder is massive coming in at around 160GB. Does anyone have any idea how to get it to the 22GB of an installed engine from the Games Launcher? What can be deleted from the post compile folder to make it lighter? Iām new to this so have mercy.
Thank you all for any and all help.
The size is ā160GB. The size of the compiled Unreal Engine source code can be significantly larger than the installed version of the engine because it includes all the source code, assets, and intermediate files generated during the compilation process.
The ā22GB is the ordinary size because all of the extra debug tools and a whole lot of other things are not included, as they are not necessary.
Great. Is there a way to optimize the size of the directory?
Unreal Engine provides a number of build configurations and platforms, and you might only need a subset of these. You can safely remove the unnecessary ones from the Engine/Source/ThirdParty folder. You can reduce debug information with:
GlobalCompileEnvironment.Config.bCreateDebugInfo = false;
Linking reduces the file size of your build:
GlobalCompileEnvironment.Config.bUseIncrementalLinking = true;
Have a look here: Build Configuration | Unreal Engine Documentation