mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Reduced chunk compression level to 7
According to benchmarks 8 and 9 are simply orders of magnitude slower while not saving enough bytes to make it worth the performance loss. 7 is a good balance.
This commit is contained in:
parent
edd0189d59
commit
49ac2555ce
@ -72,7 +72,7 @@ class ChunkRequestTask extends AsyncTask{
|
||||
|
||||
$batch = new BatchPacket();
|
||||
$batch->addPacket($pk);
|
||||
$batch->setCompressionLevel(9);
|
||||
$batch->setCompressionLevel(7);
|
||||
$batch->encode();
|
||||
|
||||
$this->setResult($batch->buffer, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user