From 1b5be0dfcdc351c4ddb2e96f9891043a49da7f06 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:38:55 +0300 Subject: [PATCH] Prioritize loading for threading priorities. --- UnleashedRecomp/gpu/video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 4b7d8620..5e3471d9 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -5084,10 +5084,10 @@ static void PipelineCompilerThread() int newThreadPriority = threadPriority; bool loading = *reinterpret_cast(g_memory.Translate(0x83367A4C)); - if (queueItem.precompiledPipeline) - newThreadPriority = THREAD_PRIORITY_IDLE; - else if (loading) + if (loading) newThreadPriority = THREAD_PRIORITY_HIGHEST; + else if (queueItem.precompiledPipeline) + newThreadPriority = THREAD_PRIORITY_IDLE; else newThreadPriority = THREAD_PRIORITY_LOWEST;