mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Wait on our D3D11 swapchain before rendering to reduce latency
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user