Faster Compile Times Building in Visual Studio

I was noticing very slow compile times with Unreal even after applying the fixes from the Solving Slow Compile Times lecture. After some digging, it appears that the issue has to do with Unreal recompiling all of it’s own code on each compilation.

A potential solution to this is to ensure you only compile the code you need to compile. For those who are able to use Visual Studio (as opposed to VS Code), this can be achieved by switching your code editor from VS Code to Visual Studio in Unreal and then compiling just the project you have made code changes to.

For example, for the Bull-Cows game:

image

I’ve noticed that the compile can still take a while, but on average appears to be faster.

Please comment with any known issues that this may cause or if you have any other techniques to speed up compile times.

Privacy & Terms