mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Improved cache pool cleanup times
This commit is contained in:
parent
8a768cea33
commit
00b282d40c
@ -2163,12 +2163,15 @@ class Server{
|
||||
|
||||
Vector3::clearVectorList();
|
||||
Position::clearPositionList();
|
||||
if(($this->tickCounter % 20) === 0){
|
||||
if(($this->tickCounter % 4) === 0){
|
||||
Event::clearAllPools();
|
||||
foreach($this->levels as $level){
|
||||
$level->clearCache();
|
||||
|
||||
if(($this->tickCounter % 80) === 0){
|
||||
foreach($this->levels as $level){
|
||||
$level->clearCache();
|
||||
}
|
||||
AxisAlignedBB::clearBoundingBoxPool();
|
||||
}
|
||||
AxisAlignedBB::clearBoundingBoxPool();
|
||||
}
|
||||
|
||||
Timings::$serverTickTimer->stopTiming();
|
||||
|
Loading…
x
Reference in New Issue
Block a user