Settings: Add Show PPU compilation hint

This commit is contained in:
Ani 2023-06-11 17:32:52 +01:00
parent b557a7fa16
commit 57b9130cf7
7 changed files with 19 additions and 1 deletions

View File

@ -94,6 +94,7 @@ namespace rsx
{
add_checkbox(&g_cfg.misc.show_trophy_popups, "Show Trophy Popups");
add_checkbox(&g_cfg.misc.show_shader_compilation_hint, "Show Shader Compilation Hint");
add_checkbox(&g_cfg.misc.show_ppu_compilation_hint, "Show PPU Compilation Hint");
apply_layout();
}

View File

@ -329,6 +329,7 @@ struct cfg_root : cfg::node
cfg::_bool prevent_display_sleep{ this, "Prevent display sleep while running games", true, true };
cfg::_bool show_trophy_popups{ this, "Show trophy popups", true, true };
cfg::_bool show_shader_compilation_hint{ this, "Show shader compilation hint", true, true };
cfg::_bool show_ppu_compilation_hint{ this, "Show PPU compilation hint", true, true };
cfg::_bool use_native_interface{ this, "Use native user interface", true };
cfg::string gdb_server{ this, "GDB Server", "127.0.0.1:2345" };
cfg::_bool silence_all_logs{ this, "Silence All Logs", false, true };

View File

@ -144,7 +144,10 @@ void progress_dialog_server::operator()()
if (show_overlay_message)
{
// Show a message instead
if (g_cfg.misc.show_ppu_compilation_hint)
{
rsx::overlays::show_ppu_compile_notification();
}
thread_ctrl::wait_for(10000);
continue;
}

View File

@ -166,6 +166,7 @@ enum class emu_settings_type
ShowTrophyPopups,
UseNativeInterface,
ShowShaderCompilationHint,
ShowPPUCompilationHint,
WindowTitleFormat,
PauseDuringHomeMenu,
@ -348,6 +349,7 @@ inline static const QMap<emu_settings_type, cfg_location> settings_location =
{ emu_settings_type::ShowTrophyPopups, { "Miscellaneous", "Show trophy popups"}},
{ emu_settings_type::UseNativeInterface, { "Miscellaneous", "Use native user interface"}},
{ emu_settings_type::ShowShaderCompilationHint, { "Miscellaneous", "Show shader compilation hint"}},
{ emu_settings_type::ShowPPUCompilationHint, { "Miscellaneous", "Show PPU compilation hint"}},
{ emu_settings_type::SilenceAllLogs, { "Miscellaneous", "Silence All Logs" }},
{ emu_settings_type::WindowTitleFormat, { "Miscellaneous", "Window Title Format" }},
{ emu_settings_type::PauseDuringHomeMenu, { "Miscellaneous", "Pause Emulation During Home Menu" }},

View File

@ -1754,6 +1754,9 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
m_emu_settings->EnhanceCheckBox(ui->showShaderCompilationHint, emu_settings_type::ShowShaderCompilationHint);
SubscribeTooltip(ui->showShaderCompilationHint, tooltips.settings.show_shader_compilation_hint);
m_emu_settings->EnhanceCheckBox(ui->showPPUCompilationHint, emu_settings_type::ShowPPUCompilationHint);
SubscribeTooltip(ui->showPPUCompilationHint, tooltips.settings.show_ppu_compilation_hint);
m_emu_settings->EnhanceCheckBox(ui->pauseDuringHomeMenu, emu_settings_type::PauseDuringHomeMenu);
SubscribeTooltip(ui->pauseDuringHomeMenu, tooltips.settings.pause_during_home_menu);

View File

@ -2934,6 +2934,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showPPUCompilationHint">
<property name="text">
<string>Show PPU compilation hint</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="pauseDuringHomeMenu">
<property name="text">

View File

@ -133,6 +133,7 @@ public:
const QString lock_mouse_in_fullscreen = tr("Locks the mouse cursor at center when the fullscreen mode is active.");
const QString hide_mouse_on_idle = tr("Hides the mouse cursor if no mouse movement is detected for the configured time.");
const QString show_shader_compilation_hint = tr("Shows 'Compiling shaders' hint using the native overlay.");
const QString show_ppu_compilation_hint = tr("Shows 'Compiling PPU modules' hint using the native overlay.");
const QString use_native_interface = tr("Enables use of native HUD within the game window that can interact with game controllers.\nWhen disabled, regular Qt dialogs are used instead.\nCurrently, the on-screen keyboard only supports the English key layout.");
const QString pause_during_home_menu = tr("When enabled, opening the home menu will also pause emulation.\nWhile most games pause themselves while the home menu is shown, some do not.\nIn that case it can be helpful to pause the emulation whenever the home menu is open.");