From 30fded068585b67b9a209a38687c4ce2e272ef5e Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Mon, 13 Jan 2025 01:10:52 +0300 Subject: [PATCH] Potential fix for async PSO freezing issue. --- UnleashedRecomp/gpu/video.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index e9e1fc9..b1feaf3 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -302,7 +302,7 @@ static const PipelineState g_pipelineStateCache[] = #include "cache/pipeline_state_cache.h" }; -static bool g_pendingPipelineStateCache = true; +static bool g_pendingPipelineStateCache; #include "cache/vertex_element_cache.h" @@ -2221,6 +2221,7 @@ void Video::Present() g_pendingDataCount.notify_all(); g_shouldPrecompilePipelines = false; + g_pendingPipelineStateCache = true; } g_executedCommandList.wait(false);