SDL: Add emulation speed slider

This commit is contained in:
Connor McLaughlin 2020-02-16 00:13:48 +09:00
parent 2d4dc6afc6
commit 24bebf7f59
1 changed files with 10 additions and 0 deletions

View File

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