The game never waits for the compiler
A game creates thousands of pipelines while it loads, and one compile takes from 0.2 seconds to several. So when a pipeline isn’t cached yet, the game gets a stand-in at once and the real one is built on a background worker.
If the game binds it early, the bind waits up to 3 seconds and the build jumps the queue. Once a frame has waited a second in total, draws with unbuilt pipelines are skipped until they’re ready. Compute work always waits, because a skipped dispatch could leave the game in the wrong state.
GameCreateFrames keep coming, with the stand-inReal pipeline
WorkerTranslateDXCDriver
Asked forReady 0.2 s to several seconds later
- Create
- Frames keep coming, with the stand-in
- Translate, DXC, driver
- Real pipeline