mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
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:
parent
3bfa564ef8
commit
09a8f7ae53
1 changed files with 1 additions and 5 deletions
|
@ -1885,11 +1885,7 @@ public:
|
||||||
{
|
{
|
||||||
// List of preferred modes in decreasing desirability
|
// List of preferred modes in decreasing desirability
|
||||||
// NOTE: Always picks "triple-buffered vsync" types if possible
|
// NOTE: Always picks "triple-buffered vsync" types if possible
|
||||||
if (g_cfg.video.vsync)
|
if (!g_cfg.video.vsync)
|
||||||
{
|
|
||||||
preferred_modes = { VK_PRESENT_MODE_MAILBOX_KHR };
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
preferred_modes = { VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_FIFO_RELAXED_KHR };
|
preferred_modes = { VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_FIFO_RELAXED_KHR };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue