From e225f66ceee66fbf2647571136155a5d56120b09 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 27 Oct 2023 22:08:33 +1100 Subject: [PATCH] [host] dxgi: explicitly flush the pipeline to reduce latency --- host/platform/Windows/capture/DXGI/src/dxgi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index 5b98c536..5fb7aa2b 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -1278,6 +1278,7 @@ static CaptureResult dxgi_capture(void) *this->deviceContext, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP); ID3D11DeviceContext_Draw(*this->deviceContext, 4, 0); + ID3D11DeviceContext_Flush(*this->deviceContext); if (!this->backend->copyFrame(tex, *tex->hdrTex)) {