mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Timings: rename core timers to remove 'timer' from the names
this makes them shorter and more consistent.
This commit is contained in:
@ -959,9 +959,9 @@ abstract class Entity{
|
||||
|
||||
$this->updateMovement();
|
||||
|
||||
Timings::$timerEntityBaseTick->startTiming();
|
||||
Timings::$entityBaseTick->startTiming();
|
||||
$hasUpdate = $this->entityBaseTick($tickDiff);
|
||||
Timings::$timerEntityBaseTick->stopTiming();
|
||||
Timings::$entityBaseTick->stopTiming();
|
||||
|
||||
$this->timings->stopTiming();
|
||||
|
||||
@ -1073,7 +1073,7 @@ abstract class Entity{
|
||||
protected function move(float $dx, float $dy, float $dz) : void{
|
||||
$this->blocksAround = null;
|
||||
|
||||
Timings::$entityMoveTimer->startTiming();
|
||||
Timings::$entityMove->startTiming();
|
||||
|
||||
$movX = $dx;
|
||||
$movY = $dy;
|
||||
@ -1219,7 +1219,7 @@ abstract class Entity{
|
||||
|
||||
//TODO: vehicle collision events (first we need to spawn them!)
|
||||
|
||||
Timings::$entityMoveTimer->stopTiming();
|
||||
Timings::$entityMove->stopTiming();
|
||||
}
|
||||
|
||||
protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz) : void{
|
||||
|
Reference in New Issue
Block a user