Fix: Calculate RTT exclude server side UI queue delay time

This commit is contained in:
yuanyuanxiang
2026-06-09 08:37:53 +02:00
parent 96688166ba
commit 8e5ec20cf2
5 changed files with 27 additions and 14 deletions

View File

@@ -392,6 +392,10 @@ public:
// 仅作为标记供后续命令处理 / 未来收紧策略使用。
std::atomic<bool> m_bAuthenticated{false};
// 心跳包到达 IOCP 线程的时刻ms用于精确计算 ProcessingMs
// 避免 UI 消息队列等待时间污染服务端耗时统计。
std::atomic<uint64_t> HeartbeatRecvMs{0};
// 预分配的解压缩缓冲区,避免频繁内存分配
PBYTE DecompressBuffer = nullptr;
ULONG DecompressBufferSize = 0;