diff --git a/rpcs3/rpcs3qt/emu_settings_type.h b/rpcs3/rpcs3qt/emu_settings_type.h index 9a0b80c341..835efdc4e9 100644 --- a/rpcs3/rpcs3qt/emu_settings_type.h +++ b/rpcs3/rpcs3qt/emu_settings_type.h @@ -36,6 +36,7 @@ enum class emu_settings_type MaxSPURSThreads, SleepTimersAccuracy, ClocksScale, + PerformanceReport, // Graphics Renderer, @@ -178,6 +179,7 @@ static const QMap settings_location = { emu_settings_type::SleepTimersAccuracy, { "Core", "Sleep Timers Accuracy"}}, { emu_settings_type::ClocksScale, { "Core", "Clocks scale"}}, { emu_settings_type::AccuratePPU128Loop, { "Core", "Accurate PPU 128-byte Reservation Op Max Length"}}, + { emu_settings_type::PerformanceReport, { "Core", "Enable Performance Report"}}, // Graphics Tab { emu_settings_type::Renderer, { "Video", "Renderer"}}, diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index ab710f797a..690fa72db2 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -418,7 +418,7 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std connect(ui->strictModeRendering, &QCheckBox::clicked, this, onStrictRenderingMode); // Radio buttons - + SubscribeTooltip(ui->rb_legacy_recompiler, tooltips.settings.legacy_shader_recompiler); SubscribeTooltip(ui->rb_async_recompiler, tooltips.settings.async_shader_recompiler); SubscribeTooltip(ui->rb_async_with_shader_interpreter, tooltips.settings.async_with_shader_interpreter); @@ -1743,6 +1743,9 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std m_emu_settings->EnhanceCheckBox(ui->hookStFunc, emu_settings_type::HookStaticFuncs); SubscribeTooltip(ui->hookStFunc, tooltips.settings.hook_static_functions); + m_emu_settings->EnhanceCheckBox(ui->perfReport, emu_settings_type::PerformanceReport); + SubscribeTooltip(ui->perfReport, tooltips.settings.enable_performance_report); + // Comboboxes m_emu_settings->EnhanceComboBox(ui->combo_accurate_ppu_128, emu_settings_type::AccuratePPU128Loop, true); diff --git a/rpcs3/rpcs3qt/settings_dialog.ui b/rpcs3/rpcs3qt/settings_dialog.ui index 689c8e8671..c74ff0d4b5 100644 --- a/rpcs3/rpcs3qt/settings_dialog.ui +++ b/rpcs3/rpcs3qt/settings_dialog.ui @@ -3520,6 +3520,13 @@ + + + + Enable Performance Report + + + diff --git a/rpcs3/rpcs3qt/tooltips.h b/rpcs3/rpcs3qt/tooltips.h index b54209d9d6..0bedd27e6a 100644 --- a/rpcs3/rpcs3qt/tooltips.h +++ b/rpcs3/rpcs3qt/tooltips.h @@ -97,6 +97,7 @@ public: const QString disable_native_fp16 = tr("Disables hardware half-float support which is known to cause problems in some rare cases on some GPUs."); const QString enable_3d = tr("Enables 3D stereo rendering.\nNote that only anaglyph viewing is supported at the moment."); const QString accurate_ppu_128_loop = tr("When enabled, PPU atomic operations will operate on entire cache line data, as opposed to a single 64bit block of memory when disabled.\nNumerical values control whether or not to enable the accurate version based on the atomic operation's length."); + const QString enable_performance_report = tr("Measure certain events and print a chart after the emulator is stopped. Don't enable if not asked to."); // emulator