mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
HostInterface: Reset throttle timer on slowdown
Prevents too slow messages when fast forwarding.
This commit is contained in:
parent
b5c799ba81
commit
b2b5e6c793
|
@ -141,7 +141,8 @@ void HostInterface::Throttle()
|
||||||
m_speed_lost_time_timestamp.Reset();
|
m_speed_lost_time_timestamp.Reset();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
m_last_throttle_time = time - MAX_VARIANCE_TIME;
|
m_last_throttle_time = 0;
|
||||||
|
m_throttle_timer.Reset();
|
||||||
}
|
}
|
||||||
else if (sleep_time >= MINIMUM_SLEEP_TIME && sleep_time <= m_throttle_period)
|
else if (sleep_time >= MINIMUM_SLEEP_TIME && sleep_time <= m_throttle_period)
|
||||||
{
|
{
|
||||||
|
@ -213,4 +214,6 @@ void HostInterface::UpdateSpeedLimiterState()
|
||||||
|
|
||||||
m_audio_stream->SetSync(audio_sync_enabled);
|
m_audio_stream->SetSync(audio_sync_enabled);
|
||||||
m_display->SetVSync(video_sync_enabled);
|
m_display->SetVSync(video_sync_enabled);
|
||||||
|
m_throttle_timer.Reset();
|
||||||
|
m_last_throttle_time = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue