mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed low TPS
This commit is contained in:
parent
31bf65ad5c
commit
dc5b8ecd30
1 changed files with 6 additions and 2 deletions
|
|
@ -565,8 +565,12 @@ class PocketMinecraftServer{
|
||||||
$lastLoop = 0;
|
$lastLoop = 0;
|
||||||
}else{
|
}else{
|
||||||
++$lastLoop;
|
++$lastLoop;
|
||||||
if($lastLoop >= 16){
|
if($lastLoop < 16){
|
||||||
usleep(5000);
|
usleep(1);
|
||||||
|
}elseif($lastLoop >= 128){
|
||||||
|
usleep(100);
|
||||||
|
}elseif($lastLoop >= 256){
|
||||||
|
usleep(512);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue