summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorDJRobX <djrobx@hotmail.com>2022-08-08 05:57:47 +0200
committerDJRobX <djrobx@hotmail.com>2022-08-08 05:57:47 +0200
commitd8b160c8839ea64573b187fc159c00d158acf930 (patch)
treec14967ec298a89c0193a54c7661a4743fbc81ccc /src/video_core
parentMerge pull request #8637 from liamwhite/bad-interrupts (diff)
downloadyuzu-d8b160c8839ea64573b187fc159c00d158acf930.tar
yuzu-d8b160c8839ea64573b187fc159c00d158acf930.tar.gz
yuzu-d8b160c8839ea64573b187fc159c00d158acf930.tar.bz2
yuzu-d8b160c8839ea64573b187fc159c00d158acf930.tar.lz
yuzu-d8b160c8839ea64573b187fc159c00d158acf930.tar.xz
yuzu-d8b160c8839ea64573b187fc159c00d158acf930.tar.zst
yuzu-d8b160c8839ea64573b187fc159c00d158acf930.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.cpp5
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()) {