diff options
| author | 2022-07-15 22:14:00 -0700 | |
|---|---|---|
| committer | 2022-07-16 23:11:39 -0700 | |
| commit | 02282477e739c8db64a13ecb0d1128098b0b0035 (patch) | |
| tree | 64a97bb378ab91808fcb3c5e0af696c867223d4b /src/video_core/renderer_vulkan | |
| parent | hle: service: nvflinger: Factor speed limit into frame time calculation. (diff) | |
| download | yuzu-02282477e739c8db64a13ecb0d1128098b0b0035.tar.gz yuzu-02282477e739c8db64a13ecb0d1128098b0b0035.tar.xz yuzu-02282477e739c8db64a13ecb0d1128098b0b0035.zip | |
yuzu: settings: Remove framerate cap and merge unlocked framerate setting.
- These were all somewhat redundant.
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 6 |
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) { | |||
| 38 | if (found_mailbox != modes.end()) { | 38 | if (found_mailbox != modes.end()) { |
| 39 | return VK_PRESENT_MODE_MAILBOX_KHR; | 39 | return VK_PRESENT_MODE_MAILBOX_KHR; |
| 40 | } | 40 | } |
| 41 | if (Settings::values.disable_fps_limit.GetValue()) { | 41 | if (!Settings::values.use_speed_limit.GetValue()) { |
| 42 | // FIFO present mode locks the framerate to the monitor's refresh rate, | 42 | // FIFO present mode locks the framerate to the monitor's refresh rate, |
| 43 | // Find an alternative to surpass this limitation if FPS is unlocked. | 43 | // Find an alternative to surpass this limitation if FPS is unlocked. |
| 44 | const auto found_imm = std::find(modes.begin(), modes.end(), VK_PRESENT_MODE_IMMEDIATE_KHR); | 44 | 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 | |||
| 205 | 205 | ||
| 206 | extent = swapchain_ci.imageExtent; | 206 | extent = swapchain_ci.imageExtent; |
| 207 | current_srgb = srgb; | 207 | current_srgb = srgb; |
| 208 | current_fps_unlocked = Settings::values.disable_fps_limit.GetValue(); | 208 | current_fps_unlocked = !Settings::values.use_speed_limit.GetValue(); |
| 209 | 209 | ||
| 210 | images = swapchain.GetImages(); | 210 | images = swapchain.GetImages(); |
| 211 | image_count = static_cast<u32>(images.size()); | 211 | image_count = static_cast<u32>(images.size()); |
| @@ -259,7 +259,7 @@ void Swapchain::Destroy() { | |||
| 259 | } | 259 | } |
| 260 | 260 | ||
| 261 | bool Swapchain::HasFpsUnlockChanged() const { | 261 | bool Swapchain::HasFpsUnlockChanged() const { |
| 262 | return current_fps_unlocked != Settings::values.disable_fps_limit.GetValue(); | 262 | return current_fps_unlocked != !Settings::values.use_speed_limit.GetValue(); |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | bool Swapchain::NeedsPresentModeUpdate() const { | 265 | bool Swapchain::NeedsPresentModeUpdate() const { |