Vulkan: Multithreaded creation of UID pipeline caches

Should give a decent speedup to boot time.
This commit is contained in:
Stenzek
2017-07-20 15:25:38 +10:00
parent 81b4ed2a81
commit 33f6668544
3 changed files with 19 additions and 7 deletions

View File

@ -263,6 +263,9 @@ bool VideoBackend::Initialize(void* window_handle)
return false;
}
// Ensure all pipelines previously used by the game have been created.
StateTracker::GetInstance()->ReloadPipelineUIDCache();
// Lastly, precompile ubershaders, if requested.
// This has to be done after the texture cache and shader cache are initialized.
if (g_ActiveConfig.CanPrecompileUberShaders())