Vulkan: Improve post-shutdown cleanup and minor improvements (#1401)

This commit is contained in:
goeiecool9999 2025-01-23 21:20:03 +01:00 committed by GitHub
parent 4f9eea07e0
commit e834515f43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 190 additions and 118 deletions

View file

@ -485,6 +485,9 @@ void LatteShaderCache_Load()
g_renderer->DeleteTexture(g_shaderCacheLoaderState.textureDRCId);
g_bootSndPlayer.FadeOutSound();
if(Latte_GetStopSignal())
LatteThread_Exit();
}
void LatteShaderCache_ShowProgress(const std::function <bool(void)>& loadUpdateFunc, bool isPipelines)
@ -625,8 +628,6 @@ void LatteShaderCache_LoadVulkanPipelineCache(uint64 cacheTitleId)
g_shaderCacheLoaderState.loadedPipelines = 0;
LatteShaderCache_ShowProgress(LatteShaderCache_updatePipelineLoadingProgress, true);
pipelineCache.EndLoading();
if(Latte_GetStopSignal())
LatteThread_Exit();
}
bool LatteShaderCache_updatePipelineLoadingProgress()