[host] dxgi: explicitly flush the pipeline to reduce latency

This commit is contained in:
Geoffrey McRae 2023-10-27 22:08:33 +11:00
parent 2206752b66
commit e225f66cee

View File

@ -1278,6 +1278,7 @@ static CaptureResult dxgi_capture(void)
*this->deviceContext, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP); *this->deviceContext, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
ID3D11DeviceContext_Draw(*this->deviceContext, 4, 0); ID3D11DeviceContext_Draw(*this->deviceContext, 4, 0);
ID3D11DeviceContext_Flush(*this->deviceContext);
if (!this->backend->copyFrame(tex, *tex->hdrTex)) if (!this->backend->copyFrame(tex, *tex->hdrTex))
{ {