mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Vulkan: Don't save pipeline cache if shader cache is disabled
We still create a pipeline cache object, since that speeds up driver's creation of pipelines at runtime. However, we should not save it.
This commit is contained in:
parent
d9a3b29a07
commit
a8343cc19a
3 changed files with 58 additions and 35 deletions
|
@ -290,7 +290,8 @@ void VideoBackend::Video_Cleanup()
|
|||
g_command_buffer_mgr->WaitForGPUIdle();
|
||||
|
||||
// Save all cached pipelines out to disk for next time.
|
||||
g_object_cache->SavePipelineCache();
|
||||
if (g_ActiveConfig.bShaderCache)
|
||||
g_object_cache->SavePipelineCache();
|
||||
|
||||
g_perf_query.reset();
|
||||
g_texture_cache.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue