private function tickProcessor()
{
$this->lastMeasure = microtime(true);
while (!$this->shutdown) {
$start = microtime(true);
$max = 5000;
while (--$max and $this->receivePacket()) {
}
while ($this->receiveStream()) {
}
$time = microtime(true) - $start;
if ($time < 0.05) {
@time_sleep_until(microtime(true) + 0.05 - $time);
}
$this->tick();
}
}