mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-18 14:05:43 -04:00
System: Fix frame limiter on fast systems (when frametime <1ms)
This commit is contained in:
parent
3cb18d13b0
commit
863f84e3f6
@ -1208,7 +1208,7 @@ void Throttle()
|
|||||||
s_last_throttle_time = 0;
|
s_last_throttle_time = 0;
|
||||||
s_throttle_timer.Reset();
|
s_throttle_timer.Reset();
|
||||||
}
|
}
|
||||||
else if (sleep_time >= MINIMUM_SLEEP_TIME && sleep_time <= s_throttle_period)
|
else if (sleep_time >= MINIMUM_SLEEP_TIME)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
Sleep(static_cast<u32>(sleep_time / 1000000));
|
Sleep(static_cast<u32>(sleep_time / 1000000));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user