double the slack for slep
This commit is contained in:
1 parent
7177b396e0
commit
afa66d0418
1 file changed
+1
-1
+1
-1
@@ -2124,7 +2124,7 @@ void I_SleepDuration(precise_t duration)
|
||||
#if defined(__linux__) || defined(__FreeBSD__) || defined(__HAIKU__)
|
||||
UINT64 precision = I_GetPrecisePrecision();
|
||||
precise_t dest = I_GetPreciseTime() + duration;
|
||||
precise_t slack = (precision / 10000); // 0.1 ms slack
|
||||
precise_t slack = (precision / 5000); // 0.2 ms slack
|
||||
if (duration > slack)
|
||||
{
|
||||
duration -= slack;
|
||||
|
||||
Reference in new issue
Block a user