I’ve upgraded a medium size project to UE5 and we’re seeing substantially higher build times. I’m controlling for as many variables as I can and still seeing significantly worse performance in apples-to-apples comparisons to UE4.
I’m opening the same project in both versions, using Visual Studio 2019 to compile, setting build process count to 22 (12 core / 24 thread machine), and unity builds are enabled. I’m observing two undesirable aspects, one of which seems like a serious regression.
UE4: 2242 actions, 975 seconds, 22 processes
UE5: 2828 actions (+26%), 1820 seconds (+87%), 22 processes
Issue 1: Number of build actions
UE5 is building an additional 600 items compared to UE4 for the exact same project. Is this expected? 26% is a massive increase and it seems reasonable to expect 26% longer compilation times in UE5 simply because of file count increase.
Issue 2: Build time per action
Even after accounting for the higher number of build action, the time to compile is massively increased. I’d expect a roughly 26% increase in compile times to match the increase in file count, but instead I’m seeing 87%. Build times for the team have gone from 16 minutes to 30 minutes.
Memory is almost never maxing out during the build, so I don’t think that’s the issue.
We can look at the amount of time spent building a single action:
UE4: 975 seconds / 2242 actions = 0.43 seconds per action
UE5: 1820 seconds / 2828 actions = 0.64 seconds per action
So it takes 50% longer, on average, to compile a single file. This seems like a severe regression of some sort.