fixed mc loop
This commit is contained in:
parent
0fbc7f3cfd
commit
a5d25f5f20
@ -334,7 +334,7 @@ class ManiaControl implements CommandListener, TimerListener {
|
||||
// Yield for next tick
|
||||
$loopEnd = microtime(true);
|
||||
|
||||
$sleepTime = (int)(1000 - $loopEnd + $loopStart);
|
||||
$sleepTime = (int)(1000 - ($loopEnd - $loopStart) * 1000000);
|
||||
if ($sleepTime > 0) {
|
||||
usleep($sleepTime);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user