Parcourir la source

vulkan: disable turbo when debugging tool is attached

Liam il y a 3 ans
Parent
commit
4df49631de
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/video_core/vulkan_common/vulkan_device.cpp

+ 3 - 1
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) {