mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-28 05:11:37 +00:00
Prioritize loading for threading priorities.
This commit is contained in:
parent
2f6e1c88d6
commit
1b5be0dfcd
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue