mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Yield in model consumer and pipeline compiler threads.
This commit is contained in:
parent
b9b41a730b
commit
aed9683975
1 changed files with 4 additions and 0 deletions
|
|
@ -4904,6 +4904,8 @@ static void PipelineCompilerThread()
|
|||
cmd.addPipeline.hash = queueItem.pipelineHash;
|
||||
cmd.addPipeline.pipeline = pipeline.release();
|
||||
g_renderQueue.enqueue(cmd);
|
||||
|
||||
std::this_thread::yield();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5712,6 +5714,8 @@ static void ModelConsumerThread()
|
|||
|
||||
if (allHandled)
|
||||
localPendingDataQueue.clear();
|
||||
|
||||
std::this_thread::yield();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue