diff options
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 5 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics_advanced.ui | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp index fa8efd22e..a69ae7725 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.cpp +++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp | |||
| @@ -33,9 +33,10 @@ VkSurfaceFormatKHR ChooseSwapSurfaceFormat(vk::Span<VkSurfaceFormatKHR> formats) | |||
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | VkPresentModeKHR ChooseSwapPresentMode(vk::Span<VkPresentModeKHR> modes) { | 35 | VkPresentModeKHR ChooseSwapPresentMode(vk::Span<VkPresentModeKHR> modes) { |
| 36 | // Mailbox doesn't lock the application like fifo (vsync), prefer it | 36 | // Mailbox (triple buffering) doesn't lock the application like fifo (vsync), |
| 37 | // prefer it if vsync option is not selected | ||
| 37 | const auto found_mailbox = std::find(modes.begin(), modes.end(), VK_PRESENT_MODE_MAILBOX_KHR); | 38 | const auto found_mailbox = std::find(modes.begin(), modes.end(), VK_PRESENT_MODE_MAILBOX_KHR); |
| 38 | if (found_mailbox != modes.end()) { | 39 | if (found_mailbox != modes.end() && !Settings::values.use_vsync.GetValue()) { |
| 39 | return VK_PRESENT_MODE_MAILBOX_KHR; | 40 | return VK_PRESENT_MODE_MAILBOX_KHR; |
| 40 | } | 41 | } |
| 41 | if (!Settings::values.use_speed_limit.GetValue()) { | 42 | if (!Settings::values.use_speed_limit.GetValue()) { |
diff --git a/src/yuzu/configuration/configure_graphics_advanced.ui b/src/yuzu/configuration/configure_graphics_advanced.ui index 96de0b3d1..d6d819364 100644 --- a/src/yuzu/configuration/configure_graphics_advanced.ui +++ b/src/yuzu/configuration/configure_graphics_advanced.ui | |||
| @@ -75,7 +75,7 @@ | |||
| 75 | <string>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don't notice a performance difference.</string> | 75 | <string>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don't notice a performance difference.</string> |
| 76 | </property> | 76 | </property> |
| 77 | <property name="text"> | 77 | <property name="text"> |
| 78 | <string>Use VSync (OpenGL only)</string> | 78 | <string>Use VSync</string> |
| 79 | </property> | 79 | </property> |
| 80 | </widget> | 80 | </widget> |
| 81 | </item> | 81 | </item> |