mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
SDL: Add emulation speed slider
This commit is contained in:
parent
2d4dc6afc6
commit
24bebf7f59
|
@ -1170,6 +1170,16 @@ void SDLHostInterface::DrawSettingsWindow()
|
|||
ImGui::NewLine();
|
||||
if (DrawSettingsSectionHeader("Behavior"))
|
||||
{
|
||||
ImGui::Text("Emulation Speed:");
|
||||
ImGui::SameLine(indent);
|
||||
|
||||
if (ImGui::SliderFloat("##speed", &m_settings.emulation_speed, 0.25f, 5.0f))
|
||||
{
|
||||
settings_changed = true;
|
||||
if (m_system)
|
||||
m_system->UpdateThrottlePeriod();
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox("Enable Speed Limiter", &m_settings.speed_limiter_enabled))
|
||||
{
|
||||
settings_changed = true;
|
||||
|
|
Loading…
Reference in a new issue