summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Liam2023-05-02 18:14:57 -0400
committerGravatar Liam2023-05-02 18:14:57 -0400
commit4df49631dec0156f1b7e05d6276bfad51a724f64 (patch)
tree136549115cf525f283e7e7793e5c63f48acb7b10 /src
parentMerge pull request #10084 from FernandoS27/yuzu-goes-broom-broom (diff)
downloadyuzu-4df49631dec0156f1b7e05d6276bfad51a724f64.tar.gz
yuzu-4df49631dec0156f1b7e05d6276bfad51a724f64.tar.xz
yuzu-4df49631dec0156f1b7e05d6276bfad51a724f64.zip
vulkan: disable turbo when debugging tool is attached
Diffstat (limited to '')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 6f288b3f8..6ffca2af2 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -617,7 +617,9 @@ bool Device::ShouldBoostClocks() const {
617 617
618 const bool is_steam_deck = vendor_id == 0x1002 && device_id == 0x163F; 618 const bool is_steam_deck = vendor_id == 0x1002 && device_id == 0x163F;
619 619
620 return validated_driver && !is_steam_deck; 620 const bool is_debugging = this->HasDebuggingToolAttached();
621
622 return validated_driver && !is_steam_deck && !is_debugging;
621} 623}
622 624
623bool Device::GetSuitability(bool requires_swapchain) { 625bool Device::GetSuitability(bool requires_swapchain) {