mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't spinlock when waiting for blocking render commands
This commit is contained in:
@@ -270,11 +270,7 @@ void RenderManager::BlockInvoke(RenderManager::InvokeMethod m)
|
||||
|
||||
PushInvoke(cmd);
|
||||
|
||||
for(;;)
|
||||
{
|
||||
if(cmd->processed.tryAcquire())
|
||||
break;
|
||||
}
|
||||
cmd->processed.acquire();
|
||||
|
||||
delete cmd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user