Added separate timings for broadcast and session buffer compression

This commit is contained in:
Dylan K. Taylor
2023-03-04 16:41:41 +00:00
parent f8893efb94
commit a523189149
4 changed files with 13 additions and 5 deletions

View File

@ -528,7 +528,7 @@ class NetworkSession{
PacketBatch::encodeRaw($stream, $this->sendBuffer);
if($this->enableCompression){
$promise = $this->server->prepareBatch(new PacketBatch($stream->getBuffer()), $this->compressor, $syncMode);
$promise = $this->server->prepareBatch(new PacketBatch($stream->getBuffer()), $this->compressor, $syncMode, Timings::$playerNetworkSendCompressSessionBuffer);
}else{
$promise = new CompressBatchPromise();
$promise->resolve($stream->getBuffer());