mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
SDL: Add CPU clock control options
This commit is contained in:
parent
61a66ed908
commit
5bfc82a517
|
@ -1311,9 +1311,25 @@ void SDLHostInterface::DrawSettingsWindow()
|
||||||
settings_changed = true;
|
settings_changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
settings_changed |= ImGui::Checkbox("Enable CPU Clock Control", &m_settings_copy.cpu_overclock_enable);
|
||||||
|
if (m_settings_copy.cpu_overclock_enable)
|
||||||
|
{
|
||||||
|
ImGui::Text("Overclock:");
|
||||||
|
ImGui::SameLine(indent);
|
||||||
|
|
||||||
|
int overclock_percent = static_cast<int>(m_settings_copy.GetCPUOverclockPercent());
|
||||||
|
if (ImGui::SliderInt("##overclock_percent", &overclock_percent, 1, 1000, "%d%%"))
|
||||||
|
{
|
||||||
|
m_settings_copy.SetCPUOverclockPercent(static_cast<u32>(overclock_percent));
|
||||||
|
settings_changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
settings_changed |=
|
settings_changed |=
|
||||||
ImGui::Checkbox("Enable Recompiler Memory Exceptions", &m_settings_copy.cpu_recompiler_memory_exceptions);
|
ImGui::Checkbox("Enable Recompiler Memory Exceptions", &m_settings_copy.cpu_recompiler_memory_exceptions);
|
||||||
|
|
||||||
|
settings_changed |= ImGui::Checkbox("Enable Recompiler ICache", &m_settings_copy.cpu_recompiler_icache);
|
||||||
|
|
||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1432,7 +1448,8 @@ void SDLHostInterface::DrawSettingsWindow()
|
||||||
settings_changed |= ImGui::Checkbox("Disable Interlacing", &m_settings_copy.gpu_disable_interlacing);
|
settings_changed |= ImGui::Checkbox("Disable Interlacing", &m_settings_copy.gpu_disable_interlacing);
|
||||||
settings_changed |= ImGui::Checkbox("Force NTSC Timings", &m_settings_copy.gpu_force_ntsc_timings);
|
settings_changed |= ImGui::Checkbox("Force NTSC Timings", &m_settings_copy.gpu_force_ntsc_timings);
|
||||||
settings_changed |= ImGui::Checkbox("Widescreen Hack", &m_settings_copy.gpu_widescreen_hack);
|
settings_changed |= ImGui::Checkbox("Widescreen Hack", &m_settings_copy.gpu_widescreen_hack);
|
||||||
settings_changed |= ImGui::Checkbox("Force 4:3 For 24-Bit Display", &m_settings_copy.display_force_4_3_for_24bit);
|
settings_changed |=
|
||||||
|
ImGui::Checkbox("Force 4:3 For 24-Bit Display", &m_settings_copy.display_force_4_3_for_24bit);
|
||||||
|
|
||||||
settings_changed |= ImGui::Checkbox("PGXP Enabled", &m_settings_copy.gpu_pgxp_enable);
|
settings_changed |= ImGui::Checkbox("PGXP Enabled", &m_settings_copy.gpu_pgxp_enable);
|
||||||
settings_changed |= ImGui::Checkbox("PGXP Culling", &m_settings_copy.gpu_pgxp_culling);
|
settings_changed |= ImGui::Checkbox("PGXP Culling", &m_settings_copy.gpu_pgxp_culling);
|
||||||
|
|
Loading…
Reference in a new issue