Wait on our D3D11 swapchain before rendering to reduce latency

This commit is contained in:
Cameron Gutman
2022-04-07 21:46:48 -05:00
parent 474591c6a5
commit 6d3d51553b
4 changed files with 27 additions and 20 deletions

View File

@@ -91,6 +91,9 @@ int Pacer::renderThread(void* context)
}
while (!me->m_Stopping) {
// Wait for the renderer to be ready for the next frame
me->m_VsyncRenderer->waitToRender();
// Acquire the frame queue lock to protect the queue and
// the not empty condition
me->m_FrameQueueLock.lock();