Changing UBT config to limit max CPUs
I would like to know if there is an option, or line of code I can edit, to limit the amount of CPU cores it uses to build the project. I only have 8 Gig RAM and run out of RAM during compilation, thus the build fails. I have to build it multiple times in order to complete the build process, each times it builds a little bit at a time.
I have limited the CPUs in Visual Studio, but I know UBT builds the source on it's own, so that's probably why it didn't work.
Any advice ? Except for buying more RAM :-)
You can try tweak:
answered Sep 01 '14 at 03:34 PM
With latest master (4.6, didn't make it to 4.5) there's an option. Add MaxProcessorCount tag to Engine/Saved/UnrealBuildTool/BuildConfiguration.xml. Something like this:
answered Sep 26 '14 at 06:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here