mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Better TPS
This commit is contained in:
parent
c57fd5c8f7
commit
b27a4aaabb
2 changed files with 2 additions and 2 deletions
|
|
@ -411,7 +411,7 @@ class PocketMinecraftServer extends stdClass{
|
||||||
if($packet !== false){
|
if($packet !== false){
|
||||||
$this->packetHandler($packet);
|
$this->packetHandler($packet);
|
||||||
}else{
|
}else{
|
||||||
usleep(10000);
|
usleep(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Session{
|
||||||
if($time > $this->timeout){
|
if($time > $this->timeout){
|
||||||
$this->close("timeout");
|
$this->close("timeout");
|
||||||
}else{
|
}else{
|
||||||
if(count($this->queue) > 0){
|
if(!empty($this->queue)){
|
||||||
$cnt = 0;
|
$cnt = 0;
|
||||||
while($cnt < 4){
|
while($cnt < 4){
|
||||||
$p = array_shift($this->queue);
|
$p = array_shift($this->queue);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue