vk: Use FIFO mode for vsync

- Avoids tearing and also hides some driver bugs causing fullscreen bugs with mailbox mode
This commit is contained in:
kd-11 2019-01-29 21:57:35 +03:00 committed by kd-11
parent 3bfa564ef8
commit 09a8f7ae53
1 changed files with 1 additions and 5 deletions

View File

@ -1885,11 +1885,7 @@ public:
{
// List of preferred modes in decreasing desirability
// NOTE: Always picks "triple-buffered vsync" types if possible
if (g_cfg.video.vsync)
{
preferred_modes = { VK_PRESENT_MODE_MAILBOX_KHR };
}
else
if (!g_cfg.video.vsync)
{
preferred_modes = { VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_FIFO_RELAXED_KHR };
}