Add "Enable Performance Report" debug setting

This commit is contained in:
Nekotekina 2020-10-20 07:09:24 +03:00
parent ea8e435b32
commit 182a998cb6
4 changed files with 14 additions and 1 deletions

View File

@ -36,6 +36,7 @@ enum class emu_settings_type
MaxSPURSThreads,
SleepTimersAccuracy,
ClocksScale,
PerformanceReport,
// Graphics
Renderer,
@ -178,6 +179,7 @@ static const QMap<emu_settings_type, cfg_location> 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"}},

View File

@ -418,7 +418,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> 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> 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);

View File

@ -3520,6 +3520,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="perfReport">
<property name="text">
<string>Enable Performance Report</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacerDebugCore">
<property name="orientation">

View File

@ -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