summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-07-17 22:59:52 +0200
committerGitHub <noreply@github.com>2022-07-17 22:59:52 +0200
commitba8ea956242537d862b4f9b5d27b95a5a6928ea7 (patch)
treef776066179ea4c1e2671ff3dc3811ed7301261a9 /src/video_core
parentMerge pull request #8544 from german77/14dot0 (diff)
parenthle: service: nvflinger: Fix implicit conversion. (diff)
downloadyuzu-ba8ea956242537d862b4f9b5d27b95a5a6928ea7.tar
yuzu-ba8ea956242537d862b4f9b5d27b95a5a6928ea7.tar.gz
yuzu-ba8ea956242537d862b4f9b5d27b95a5a6928ea7.tar.bz2
yuzu-ba8ea956242537d862b4f9b5d27b95a5a6928ea7.tar.lz
yuzu-ba8ea956242537d862b4f9b5d27b95a5a6928ea7.tar.xz
yuzu-ba8ea956242537d862b4f9b5d27b95a5a6928ea7.tar.zst
yuzu-ba8ea956242537d862b4f9b5d27b95a5a6928ea7.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp
index a0c26a72a..fa8efd22e 100644
--- a/src/video_core/renderer_vulkan/vk_swapchain.cpp
+++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp
@@ -38,7 +38,7 @@ VkPresentModeKHR ChooseSwapPresentMode(vk::Span<VkPresentModeKHR> modes) {
if (found_mailbox != modes.end()) {
return VK_PRESENT_MODE_MAILBOX_KHR;
}
- if (Settings::values.disable_fps_limit.GetValue()) {
+ if (!Settings::values.use_speed_limit.GetValue()) {
// FIFO present mode locks the framerate to the monitor's refresh rate,
// Find an alternative to surpass this limitation if FPS is unlocked.
const auto found_imm = std::find(modes.begin(), modes.end(), VK_PRESENT_MODE_IMMEDIATE_KHR);
@@ -205,7 +205,7 @@ void Swapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, u3
extent = swapchain_ci.imageExtent;
current_srgb = srgb;
- current_fps_unlocked = Settings::values.disable_fps_limit.GetValue();
+ current_fps_unlocked = !Settings::values.use_speed_limit.GetValue();
images = swapchain.GetImages();
image_count = static_cast<u32>(images.size());
@@ -259,7 +259,7 @@ void Swapchain::Destroy() {
}
bool Swapchain::HasFpsUnlockChanged() const {
- return current_fps_unlocked != Settings::values.disable_fps_limit.GetValue();
+ return current_fps_unlocked != !Settings::values.use_speed_limit.GetValue();
}
bool Swapchain::NeedsPresentModeUpdate() const {