mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-03-06 14:27:44 +00:00
minor fix
This commit is contained in:
parent
7be381c9ba
commit
78eab65749
|
@ -851,7 +851,7 @@ static void SuperSleepUntil(uint64_t target)
|
||||||
|
|
||||||
// Compute the whole number of millis to sleep. Because OS sleep is not accurate,
|
// Compute the whole number of millis to sleep. Because OS sleep is not accurate,
|
||||||
// we actually sleep for one less and will spin-wait for the final millisecond.
|
// we actually sleep for one less and will spin-wait for the final millisecond.
|
||||||
int64_t numWholeMillisToSleep = int64_t((target - time) * 1000 / s_perfCounterFrequency);
|
uint32_t numWholeMillisToSleep = uint32_t((target - time) * 1000 / s_perfCounterFrequency);
|
||||||
numWholeMillisToSleep -= 1;
|
numWholeMillisToSleep -= 1;
|
||||||
if (numWholeMillisToSleep > 0)
|
if (numWholeMillisToSleep > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue