mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed low TPS
This commit is contained in:
parent
31bf65ad5c
commit
dc5b8ecd30
@ -565,8 +565,12 @@ class PocketMinecraftServer{
|
||||
$lastLoop = 0;
|
||||
}else{
|
||||
++$lastLoop;
|
||||
if($lastLoop >= 16){
|
||||
usleep(5000);
|
||||
if($lastLoop < 16){
|
||||
usleep(1);
|
||||
}elseif($lastLoop >= 128){
|
||||
usleep(100);
|
||||
}elseif($lastLoop >= 256){
|
||||
usleep(512);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user