Browse Source

video_core: stop waiting for shader compilation on user cancel

nce_cpp
Liam 3 years ago
parent
commit
50ed529c2a
  1. 2
      src/video_core/renderer_opengl/gl_shader_cache.cpp
  2. 2
      src/video_core/renderer_vulkan/vk_pipeline_cache.cpp

2
src/video_core/renderer_opengl/gl_shader_cache.cpp

@ -299,7 +299,7 @@ void ShaderCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading,
state.has_loaded = true; state.has_loaded = true;
lock.unlock(); lock.unlock();
workers->WaitForRequests();
workers->WaitForRequests(stop_loading);
if (!use_asynchronous_shaders) { if (!use_asynchronous_shaders) {
workers.reset(); workers.reset();
} }

2
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp

@ -452,7 +452,7 @@ void PipelineCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading
state.has_loaded = true; state.has_loaded = true;
lock.unlock(); lock.unlock();
workers.WaitForRequests();
workers.WaitForRequests(stop_loading);
if (state.statistics) { if (state.statistics) {
state.statistics->Report(); state.statistics->Report();

Loading…
Cancel
Save