mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +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]);
|
unset($this->changes[$index]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gc_collect_cycles();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function generateChunk($chunkX, $chunkZ){
|
public function generateChunk($chunkX, $chunkZ){
|
||||||
|
@ -106,6 +106,7 @@ class GenerationThread extends Thread{
|
|||||||
|
|
||||||
public function run(){
|
public function run(){
|
||||||
error_reporting(-1);
|
error_reporting(-1);
|
||||||
|
gc_enable();
|
||||||
//Load removed dependencies, can't use require_once()
|
//Load removed dependencies, can't use require_once()
|
||||||
foreach($this->loadPaths as $name => $path){
|
foreach($this->loadPaths as $name => $path){
|
||||||
if(!class_exists($name, false) and !interface_exists($name, false)){
|
if(!class_exists($name, false) and !interface_exists($name, false)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user