Prioritize loading for threading priorities.

This commit is contained in:
Skyth 2025-01-13 19:38:55 +03:00
parent 2f6e1c88d6
commit 1b5be0dfcd

View file

@ -5084,10 +5084,10 @@ static void PipelineCompilerThread()
int newThreadPriority = threadPriority; int newThreadPriority = threadPriority;
bool loading = *reinterpret_cast<bool*>(g_memory.Translate(0x83367A4C)); bool loading = *reinterpret_cast<bool*>(g_memory.Translate(0x83367A4C));
if (queueItem.precompiledPipeline) if (loading)
newThreadPriority = THREAD_PRIORITY_IDLE;
else if (loading)
newThreadPriority = THREAD_PRIORITY_HIGHEST; newThreadPriority = THREAD_PRIORITY_HIGHEST;
else if (queueItem.precompiledPipeline)
newThreadPriority = THREAD_PRIORITY_IDLE;
else else
newThreadPriority = THREAD_PRIORITY_LOWEST; newThreadPriority = THREAD_PRIORITY_LOWEST;