Browse Source
[vk] Disable vsync when Turbo Mode is enabled
Note to self: you have a 60Hz display, use it
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3633/head
crueter
1 week ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
2 changed files with
6 additions and
5 deletions
-
src/video_core/renderer_vulkan/vk_swapchain.cpp
-
src/video_core/vulkan_common/vulkan_wrapper.cpp
|
|
|
@ -8,14 +8,13 @@ |
|
|
|
#include <array>
|
|
|
|
#include <limits>
|
|
|
|
#include <vector>
|
|
|
|
#include <vulkan/vk_enum_string_helper.h>
|
|
|
|
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include <ranges>
|
|
|
|
#include "common/settings.h"
|
|
|
|
#include "core/core.h"
|
|
|
|
#include "common/settings_enums.h"
|
|
|
|
#include "video_core/renderer_vulkan/vk_scheduler.h"
|
|
|
|
#include "video_core/renderer_vulkan/vk_swapchain.h"
|
|
|
|
#include "video_core/vulkan_common/vk_enum_string_helper.h"
|
|
|
|
#include "video_core/vulkan_common/vulkan_device.h"
|
|
|
|
#include "video_core/vulkan_common/vulkan_wrapper.h"
|
|
|
|
#include "vulkan/vulkan_core.h"
|
|
|
|
@ -45,7 +44,8 @@ static VkPresentModeKHR ChooseSwapPresentMode(bool has_imm, bool has_mailbox, |
|
|
|
Settings::VSyncMode setting = [has_imm, has_mailbox]() { |
|
|
|
// Choose Mailbox or Immediate if unlocked and those modes are supported
|
|
|
|
const auto mode = Settings::values.vsync_mode.GetValue(); |
|
|
|
if (Settings::values.use_speed_limit.GetValue()) { |
|
|
|
if (Settings::values.use_speed_limit.GetValue() && |
|
|
|
Settings::values.current_speed_mode.GetValue() != Settings::SpeedMode::Turbo) { |
|
|
|
return mode; |
|
|
|
} |
|
|
|
switch (mode) { |
|
|
|
|
|
|
|
@ -10,9 +10,10 @@ |
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <vulkan/vk_enum_string_helper.h>
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "video_core/vulkan_common/vk_enum_string_helper.h"
|
|
|
|
#include "video_core/vulkan_common/vma.h"
|
|
|
|
#include "video_core/vulkan_common/vulkan_wrapper.h"
|
|
|
|
|
|
|
|
|