mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Enabled default PHP GC on generator thread
This commit is contained in:
parent
c71689a919
commit
63fc229c12
@ -110,8 +110,6 @@ class GenerationChunkManager implements ChunkManager{
|
||||
unset($this->changes[$index]);
|
||||
}
|
||||
}
|
||||
|
||||
gc_collect_cycles();
|
||||
}
|
||||
|
||||
public function generateChunk($chunkX, $chunkZ){
|
||||
|
@ -106,6 +106,7 @@ class GenerationThread extends Thread{
|
||||
|
||||
public function run(){
|
||||
error_reporting(-1);
|
||||
gc_enable();
|
||||
//Load removed dependencies, can't use require_once()
|
||||
foreach($this->loadPaths as $name => $path){
|
||||
if(!class_exists($name, false) and !interface_exists($name, false)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user