From c656105a6c6ce14ced695f8edb1864cbba4e66dd Mon Sep 17 00:00:00 2001 From: GPUCode Date: Sun, 10 Sep 2023 23:26:09 +0300 Subject: debug: Add renderdoc capture hotkey --- src/yuzu/configuration/configure_debug.cpp | 3 + src/yuzu/configuration/configure_debug.ui | 99 ++++++++++++++++-------------- 2 files changed, 56 insertions(+), 46 deletions(-) (limited to 'src/yuzu/configuration') diff --git a/src/yuzu/configuration/configure_debug.cpp b/src/yuzu/configuration/configure_debug.cpp index cbeb8f168..b22fda746 100644 --- a/src/yuzu/configuration/configure_debug.cpp +++ b/src/yuzu/configuration/configure_debug.cpp @@ -59,6 +59,8 @@ void ConfigureDebug::SetConfiguration() { ui->use_debug_asserts->setChecked(Settings::values.use_debug_asserts.GetValue()); ui->use_auto_stub->setChecked(Settings::values.use_auto_stub.GetValue()); ui->enable_all_controllers->setChecked(Settings::values.enable_all_controllers.GetValue()); + ui->enable_renderdoc_hotkey->setEnabled(runtime_lock); + ui->enable_renderdoc_hotkey->setChecked(Settings::values.enable_renderdoc_hotkey.GetValue()); ui->enable_graphics_debugging->setEnabled(runtime_lock); ui->enable_graphics_debugging->setChecked(Settings::values.renderer_debug.GetValue()); ui->enable_shader_feedback->setEnabled(runtime_lock); @@ -111,6 +113,7 @@ void ConfigureDebug::ApplyConfiguration() { Settings::values.use_auto_stub = ui->use_auto_stub->isChecked(); Settings::values.enable_all_controllers = ui->enable_all_controllers->isChecked(); Settings::values.renderer_debug = ui->enable_graphics_debugging->isChecked(); + Settings::values.enable_renderdoc_hotkey = ui->enable_renderdoc_hotkey->isChecked(); Settings::values.renderer_shader_feedback = ui->enable_shader_feedback->isChecked(); Settings::values.cpu_debug_mode = ui->enable_cpu_debugging->isChecked(); Settings::values.enable_nsight_aftermath = ui->enable_nsight_aftermath->isChecked(); diff --git a/src/yuzu/configuration/configure_debug.ui b/src/yuzu/configuration/configure_debug.ui index 97c7d9022..66b8b7459 100644 --- a/src/yuzu/configuration/configure_debug.ui +++ b/src/yuzu/configuration/configure_debug.ui @@ -18,8 +18,8 @@ 0 0 - 829 - 758 + 842 + 741 @@ -260,7 +260,7 @@ Graphics - + When checked, it executes shaders without loop logic changes @@ -270,33 +270,53 @@ - - + + true - When checked, it will dump all the original assembler shaders from the disk shader cache or game as found + When checked, it disables the macro HLE functions. Enabling this makes games run slower - Dump Game Shaders + Disable Macro HLE - + true - When checked, it disables the macro HLE functions. Enabling this makes games run slower + When checked, it will dump all the macro programs of the GPU - Disable Macro HLE + Dump Maxwell Macros - + + + + When checked, it enables Nsight Aftermath crash dumps + + + Enable Nsight Aftermath + + + + + + + When checked, yuzu will log statistics about the compiled pipeline cache + + + Enable Shader Feedback + + + + true @@ -309,6 +329,22 @@ + + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 0 + + + + @@ -322,55 +358,26 @@ - - + + true - When checked, it will dump all the macro programs of the GPU + When checked, it will dump all the original assembler shaders from the disk shader cache or game as found - Dump Maxwell Macros + Dump Game Shaders - - - When checked, yuzu will log statistics about the compiled pipeline cache - - - Enable Shader Feedback - - - - - - - When checked, it enables Nsight Aftermath crash dumps - + - Enable Nsight Aftermath + Enable Renderdoc Hotkey - - - - Qt::Vertical - - - QSizePolicy::Preferred - - - - 20 - 0 - - - - -- cgit v1.2.3