summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-01-05 02:53:08 +0100
committerLiam <byteslice@airmail.cc>2023-01-05 04:22:01 +0100
commita4269c285a07f6fbf6d270951d1c21559d37ae5b (patch)
tree5fd22ef4f797fdb2f89ce13009922934139631dc /src/video_core
parentvulkan: implement 'turbo mode' clock booster (diff)
downloadyuzu-a4269c285a07f6fbf6d270951d1c21559d37ae5b.tar
yuzu-a4269c285a07f6fbf6d270951d1c21559d37ae5b.tar.gz
yuzu-a4269c285a07f6fbf6d270951d1c21559d37ae5b.tar.bz2
yuzu-a4269c285a07f6fbf6d270951d1c21559d37ae5b.tar.lz
yuzu-a4269c285a07f6fbf6d270951d1c21559d37ae5b.tar.xz
yuzu-a4269c285a07f6fbf6d270951d1c21559d37ae5b.tar.zst
yuzu-a4269c285a07f6fbf6d270951d1c21559d37ae5b.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/renderer_vulkan.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
index e5802b40c..2f3d1c934 100644
--- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp
+++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
@@ -110,7 +110,9 @@ RendererVulkan::RendererVulkan(Core::TelemetrySession& telemetry_session_,
screen_info),
rasterizer(render_window, gpu, cpu_memory, screen_info, device, memory_allocator,
state_tracker, scheduler) {
- turbo_mode.emplace(instance, dld);
+ if (Settings::values.renderer_force_max_clock.GetValue()) {
+ turbo_mode.emplace(instance, dld);
+ }
Report();
} catch (const vk::Exception& exception) {
LOG_ERROR(Render_Vulkan, "Vulkan initialization failed with error: {}", exception.what());