diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-08-10 02:43:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 02:43:55 +0200 |
commit | 253e1e6941ee9998ec72d027f7e40141c52213ca (patch) | |
tree | 47adfa2a67d7157a3c8ff61295298bc5ed96db5e /src/video_core | |
parent | Merge pull request #8722 from german77/ds4_goes_brrr (diff) | |
parent | Make vsync setting work for Vulkan (diff) | |
download | yuzu-253e1e6941ee9998ec72d027f7e40141c52213ca.tar yuzu-253e1e6941ee9998ec72d027f7e40141c52213ca.tar.gz yuzu-253e1e6941ee9998ec72d027f7e40141c52213ca.tar.bz2 yuzu-253e1e6941ee9998ec72d027f7e40141c52213ca.tar.lz yuzu-253e1e6941ee9998ec72d027f7e40141c52213ca.tar.xz yuzu-253e1e6941ee9998ec72d027f7e40141c52213ca.tar.zst yuzu-253e1e6941ee9998ec72d027f7e40141c52213ca.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 5 |
1 files changed, 3 insertions, 2 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) } VkPresentModeKHR ChooseSwapPresentMode(vk::Span<VkPresentModeKHR> modes) { - // Mailbox doesn't lock the application like fifo (vsync), prefer it + // Mailbox (triple buffering) doesn't lock the application like fifo (vsync), + // prefer it if vsync option is not selected const auto found_mailbox = std::find(modes.begin(), modes.end(), VK_PRESENT_MODE_MAILBOX_KHR); - if (found_mailbox != modes.end()) { + if (found_mailbox != modes.end() && !Settings::values.use_vsync.GetValue()) { return VK_PRESENT_MODE_MAILBOX_KHR; } if (!Settings::values.use_speed_limit.GetValue()) { |