Remove debug timings

This commit is contained in:
Dylan K. Taylor 2023-11-13 15:08:34 +00:00
parent d35d9e6ecf
commit e92923aa10
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 0 additions and 8 deletions

View File

@ -1387,17 +1387,13 @@ class Server{
}
if(!$sync && $this->networkCompressionThreads > 0){
Timings::$playerNetworkSendCompressAsync->startTiming();
$workerPool = $this->getNetworkCompressionWorkerPool($compressor);
//TODO: we really want to be submitting all sessions' buffers in one go to maximize performance
$promise = $workerPool->submit($buffer);
Timings::$playerNetworkSendCompressAsync->stopTiming();
}else{
Timings::$playerNetworkSendCompressSync->startTiming();
$promise = new CompressBatchPromise();
$promise->resolve($compressor->compress($buffer));
Timings::$playerNetworkSendCompressSync->stopTiming();
}
return $promise;

View File

@ -50,8 +50,6 @@ abstract class Timings{
public static TimingsHandler $playerNetworkSendCompress;
public static TimingsHandler $playerNetworkSendCompressBroadcast;
public static TimingsHandler $playerNetworkSendCompressSessionBuffer;
public static TimingsHandler $playerNetworkSendCompressSync;
public static TimingsHandler $playerNetworkSendCompressAsync;
public static TimingsHandler $playerNetworkSendEncrypt;
public static TimingsHandler $playerNetworkSendInventorySync;
public static TimingsHandler $playerNetworkSendPreSpawnGameData;
@ -149,8 +147,6 @@ abstract class Timings{
self::$playerNetworkSendCompress = new TimingsHandler("Player Network Send - Compression", self::$playerNetworkSend);
self::$playerNetworkSendCompressBroadcast = new TimingsHandler("Player Network Send - Compression (Broadcast)", self::$playerNetworkSendCompress);
self::$playerNetworkSendCompressSessionBuffer = new TimingsHandler("Player Network Send - Compression (Session Buffer)", self::$playerNetworkSendCompress);
self::$playerNetworkSendCompressSync = new TimingsHandler("Player Network Send - Compression (Main Thread)", self::$playerNetworkSendCompress);
self::$playerNetworkSendCompressAsync = new TimingsHandler("Player Network Send - Compression (Handoff to Worker Thread)", self::$playerNetworkSendCompress);
self::$playerNetworkSendEncrypt = new TimingsHandler("Player Network Send - Encryption", self::$playerNetworkSend);
self::$playerNetworkSendInventorySync = new TimingsHandler("Player Network Send - Inventory Sync", self::$playerNetworkSend);
self::$playerNetworkSendPreSpawnGameData = new TimingsHandler("Player Network Send - Pre-Spawn Game Data", self::$playerNetworkSend);