1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d11] Don't use presentation fence on ANV

Should hopefully fix stuttering issues introduced with 1.0.
This commit is contained in:
Philip Rebohle 2019-03-14 16:32:21 +01:00
parent 1656860486
commit 19f82826bb
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,10 @@ namespace dxvk {
InitShaders();
SetGammaControl(0, nullptr);
// The present fence seems to introduce stutter on ANV
if (m_device->adapter()->matchesDriver(DxvkGpuVendor::Intel, VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA_KHR, 0, 0))
m_usePresentFence = false;
}
@ -240,7 +244,8 @@ namespace dxvk {
}
// Wait for image to become actually available
m_presenter->waitForFence(sync.fence);
if (m_usePresentFence)
m_presenter->waitForFence(sync.fence);
// Use an appropriate texture filter depending on whether
// the back buffer size matches the swap image size

View File

@ -120,6 +120,8 @@ namespace dxvk {
bool m_dirty = true;
bool m_vsync = true;
bool m_usePresentFence = true;
void PresentImage(UINT SyncInterval);
void FlushImmediateContext();