mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
World: added an extra subtiming for random chunk updates
This commit is contained in:
parent
4736b5968d
commit
7217ff5ff5
@ -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);
|
||||
|
||||
|
@ -41,6 +41,7 @@ class WorldTimings{
|
||||
public $scheduledBlockUpdates;
|
||||
/** @var TimingsHandler */
|
||||
public $randomChunkUpdates;
|
||||
public TimingsHandler $randomChunkUpdatesChunkSelection;
|
||||
/** @var TimingsHandler */
|
||||
public $doChunkGC;
|
||||
/** @var TimingsHandler */
|
||||
@ -74,6 +75,7 @@ class WorldTimings{
|
||||
$this->doChunkUnload = new TimingsHandler(Timings::INCLUDED_BY_OTHER_TIMINGS_PREFIX . $name . "Unload Chunks");
|
||||
$this->scheduledBlockUpdates = new TimingsHandler(Timings::INCLUDED_BY_OTHER_TIMINGS_PREFIX . $name . "Scheduled Block Updates");
|
||||
$this->randomChunkUpdates = new TimingsHandler(Timings::INCLUDED_BY_OTHER_TIMINGS_PREFIX . $name . "Random Chunk Updates");
|
||||
$this->randomChunkUpdatesChunkSelection = new TimingsHandler(Timings::INCLUDED_BY_OTHER_TIMINGS_PREFIX . $name . "Random Chunk Updates - Chunk Selection");
|
||||
$this->doChunkGC = new TimingsHandler(Timings::INCLUDED_BY_OTHER_TIMINGS_PREFIX . $name . "Garbage Collection");
|
||||
$this->entityTick = new TimingsHandler(Timings::INCLUDED_BY_OTHER_TIMINGS_PREFIX . $name . "Tick Entities");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user