diff options
| author | 2023-05-03 10:53:03 -0400 | |
|---|---|---|
| committer | 2023-05-03 10:53:03 -0400 | |
| commit | 8dd3baa562946fcb52c6eef03466ddd4ac4cdcee (patch) | |
| tree | ca1b092cba21c6f7ce6c2251cf2e3ec489f98d5e /src | |
| parent | Merge pull request #10143 from liamwhite/fruit-company-moment (diff) | |
| parent | vulkan: disable turbo when debugging tool is attached (diff) | |
| download | yuzu-8dd3baa562946fcb52c6eef03466ddd4ac4cdcee.tar.gz yuzu-8dd3baa562946fcb52c6eef03466ddd4ac4cdcee.tar.xz yuzu-8dd3baa562946fcb52c6eef03466ddd4ac4cdcee.zip | |
Merge pull request #10144 from liamwhite/dont-turbo
vulkan: disable turbo when debugging tool is attached
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 4 |
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 | ||
| 623 | bool Device::GetSuitability(bool requires_swapchain) { | 625 | bool Device::GetSuitability(bool requires_swapchain) { |