liamkf / Unreal_FASTBuild

Allows UnrealEngine to be built with FASTBuild for VS2015/VS2017 and Windows 10.
MIT License
180 stars 71 forks source link

Long Distributed Build time Game module #37

Open oliviergaertner opened 5 years ago

oliviergaertner commented 5 years ago

Hey Guys!

We've run some test here and activating caching or distributed build on our game game, increases significantly the build times.

Do you see the same thing on your projects? Are you using distribution and caching all the time or only when working on the engine code?

I know that there is an overhead when using on or the other due to network etc but I was not expecting such bad results. I'm not sure that we gad the same issues when working on 4.18.

Cheers,

Olivier

nullbus commented 5 years ago

I think you need to disable all precompiled headers if they are activated. PCH is not good with Fastbuild when you are trying to distribute compile tasks to other computers. You can disable whole PCHs by setting bUsePCHFiles to false in BuildConfiguration.xml or build target file.

Disabling PCH on your project may cause bunch of compile errors at first, but these errors can be easily fixed with some effort.