mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14: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:
parent
1656860486
commit
19f82826bb
@ -36,6 +36,10 @@ namespace dxvk {
|
|||||||
InitShaders();
|
InitShaders();
|
||||||
|
|
||||||
SetGammaControl(0, nullptr);
|
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
|
// 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
|
// Use an appropriate texture filter depending on whether
|
||||||
// the back buffer size matches the swap image size
|
// the back buffer size matches the swap image size
|
||||||
|
@ -120,6 +120,8 @@ namespace dxvk {
|
|||||||
bool m_dirty = true;
|
bool m_dirty = true;
|
||||||
bool m_vsync = true;
|
bool m_vsync = true;
|
||||||
|
|
||||||
|
bool m_usePresentFence = true;
|
||||||
|
|
||||||
void PresentImage(UINT SyncInterval);
|
void PresentImage(UINT SyncInterval);
|
||||||
|
|
||||||
void FlushImmediateContext();
|
void FlushImmediateContext();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user