I'm not a game dev so please forgive me if this is the wrong place for this type of question but I'm looking for some resources to try and understand why games take so long to compile.
For context, I've worked with former game devs who've mentioned that builds can take anywhere from 4 to 6 hours to complete - even with a distributed architecture - depending on the hardware. That shit blew my mind. They said it has something to do with compiling shader permutations but didn't go into anyore detail. That said, I have a very primitive understanding of what shaders are but I mostly work with infrastructure and optimizing build systems.
Like I said, I'm not a game dev, im just curious. I appreciate any insight or resources you throw my way. Thanks!
Worth noting: That 4 to 6 hour number is probably for a build from scratch. A good build system will be able to only recompile things that have changed and so the develop -> compile -> test cycle is usually much faster.
Ahh yeah that makes sense. That'd be a pain in the ass if it was for every build.
For a standard UE 4 or 5 game, 4 to 6 hours is normal time for iterative cook builds. If you lose your cook your are fucked and have to wait 20 hours. And that would involve incredibuild to get more than 100 cores during the compile.