From 4050e8297fdcd8aa26066c8ca4f2d8ce40b1e93c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gu=C3=A9rin?= Date: Wed, 24 Jan 2018 21:28:43 -0800 Subject: [PATCH] [d3d11] mock D3D11_QUERY_EVENT in addition to fix low framerate with vsync ON on Trackmania, this lets GTA V show the loading screen. --- src/d3d11/d3d11_query.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d3d11/d3d11_query.cpp b/src/d3d11/d3d11_query.cpp index 7f08fbdb..50d47c62 100644 --- a/src/d3d11/d3d11_query.cpp +++ b/src/d3d11/d3d11_query.cpp @@ -9,6 +9,7 @@ namespace dxvk { : m_device(device), m_desc(desc) { switch (desc.Query) { // Other query types are currently unsupported + case D3D11_QUERY_EVENT: case D3D11_QUERY_OCCLUSION: case D3D11_QUERY_TIMESTAMP: case D3D11_QUERY_TIMESTAMP_DISJOINT: @@ -102,6 +103,10 @@ namespace dxvk { return S_OK; switch (m_desc.Query) { + case D3D11_QUERY_EVENT: + *static_cast(pData) = TRUE; + return S_OK; + case D3D11_QUERY_OCCLUSION: *static_cast(pData) = 1; return S_OK;