World: added an extra subtiming for random chunk updates

This commit is contained in:
Dylan K. Taylor
2021-05-17 23:18:56 +01:00
parent 4736b5968d
commit 7217ff5ff5
2 changed files with 6 additions and 0 deletions

View File

@ -976,6 +976,8 @@ class World implements ChunkManager{
return;
}
$this->timings->randomChunkUpdatesChunkSelection->startTiming();
/** @var bool[] $chunkTickList chunkhash => dummy */
$chunkTickList = [];
@ -997,6 +999,8 @@ class World implements ChunkManager{
}
}
$this->timings->randomChunkUpdatesChunkSelection->stopTiming();
foreach($chunkTickList as $index => $_){
World::getXZ($index, $chunkX, $chunkZ);