mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Fix counter logic for pipeline recompilation.
This commit is contained in:
parent
b7a47c5c88
commit
2c948cc5d2
1 changed files with 2 additions and 9 deletions
|
|
@ -5897,13 +5897,8 @@ static void ModelConsumerThread()
|
|||
EnqueueGraphicsPipelineCompilation(pipelineState, emptyHolderPair, "Recompiled Pipeline State");
|
||||
}
|
||||
|
||||
if ((--g_pendingPipelineRecompilations) == 0)
|
||||
{
|
||||
--g_pendingDataCount;
|
||||
|
||||
if ((--g_compilingDataCount) == 0)
|
||||
g_compilingDataCount.notify_all();
|
||||
}
|
||||
--g_pendingPipelineRecompilations;
|
||||
--g_pendingDataCount;
|
||||
}
|
||||
|
||||
{
|
||||
|
|
@ -6152,8 +6147,6 @@ void VideoConfigValueChangedCallback(IConfigDef* config)
|
|||
|
||||
if (shouldRecompile)
|
||||
{
|
||||
++g_compilingDataCount;
|
||||
|
||||
if ((++g_pendingDataCount) == 1)
|
||||
g_pendingDataCount.notify_all();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue