mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-28 05:11:37 +00:00
Default to triple buffering if presentWait is supported.
This commit is contained in:
parent
37227b8a83
commit
97122daf3b
1 changed files with 7 additions and 1 deletions
|
|
@ -1350,7 +1350,13 @@ void Video::CreateHostDevice()
|
||||||
switch (Config::TripleBuffering)
|
switch (Config::TripleBuffering)
|
||||||
{
|
{
|
||||||
case ETripleBuffering::Auto:
|
case ETripleBuffering::Auto:
|
||||||
bufferCount = g_vulkan ? 2 : 3; // Defaulting to 3 is fine on D3D12 thanks to flip discard model.
|
if (g_vulkan)
|
||||||
|
// Defaulting to 3 is fine if presentWait as supported, as the maximum frame latency allowed is only 1.
|
||||||
|
bufferCount = g_device->getCapabilities().presentWait ? 3 : 2;
|
||||||
|
else
|
||||||
|
// Defaulting to 3 is fine on D3D12 thanks to flip discard model.
|
||||||
|
bufferCount = 3;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case ETripleBuffering::On:
|
case ETripleBuffering::On:
|
||||||
bufferCount = 3;
|
bufferCount = 3;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue