mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
System: Fix very low underclocks locking up
This commit is contained in:
parent
436ed10f44
commit
05eecf9944
|
@ -138,7 +138,8 @@ ALWAYS_INLINE_RELEASE TickCount ScaleTicksToOverclock(TickCount ticks)
|
||||||
if (!g_settings.cpu_overclock_active)
|
if (!g_settings.cpu_overclock_active)
|
||||||
return ticks;
|
return ticks;
|
||||||
|
|
||||||
return static_cast<TickCount>((static_cast<u64>(static_cast<u32>(ticks)) * g_settings.cpu_overclock_numerator) /
|
return static_cast<TickCount>(((static_cast<u64>(static_cast<u32>(ticks)) * g_settings.cpu_overclock_numerator) +
|
||||||
|
(g_settings.cpu_overclock_denominator - 1)) /
|
||||||
g_settings.cpu_overclock_denominator);
|
g_settings.cpu_overclock_denominator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue