mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
Vulkan: Properly shut down compilation threads
This commit is contained in:
parent
bffeb818d1
commit
e7fa8ec0c6
3 changed files with 28 additions and 3 deletions
|
@ -591,6 +591,9 @@ VulkanRenderer::VulkanRenderer()
|
|||
{
|
||||
//cemuLog_log(LogType::Force, "Disable surface copies via buffer (Requires 2GB. Has only {}MB available)", availableSurfaceCopyBufferMem / 1024ull / 1024ull);
|
||||
}
|
||||
|
||||
// start compilation threads
|
||||
RendererShaderVk::Init();
|
||||
}
|
||||
|
||||
VulkanRenderer::~VulkanRenderer()
|
||||
|
@ -598,6 +601,8 @@ VulkanRenderer::~VulkanRenderer()
|
|||
SubmitCommandBuffer();
|
||||
WaitDeviceIdle();
|
||||
WaitCommandBufferFinished(GetCurrentCommandBufferId());
|
||||
// shut down compilation threads
|
||||
RendererShaderVk::Shutdown();
|
||||
// shut down pipeline save thread
|
||||
m_destructionRequested = true;
|
||||
m_pipeline_cache_semaphore.notify();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue