summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-05-03 10:53:03 -0400
committerGitHub <noreply@github.com>2023-05-03 10:53:03 -0400
commit8dd3baa562946fcb52c6eef03466ddd4ac4cdcee (patch)
treeca1b092cba21c6f7ce6c2251cf2e3ec489f98d5e
parentdaf7936095913d530dc461a7e62b22b7502e7fc4 (diff)
parent4df49631dec0156f1b7e05d6276bfad51a724f64 (diff)
Merge pull request #10144 from liamwhite/dont-turbo
vulkan: disable turbo when debugging tool is attached
-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 {
const bool is_steam_deck = vendor_id == 0x1002 && device_id == 0x163F;
- return validated_driver && !is_steam_deck;
+ const bool is_debugging = this->HasDebuggingToolAttached();
+
+ return validated_driver && !is_steam_deck && !is_debugging;
}
bool Device::GetSuitability(bool requires_swapchain) {