diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-27 20:04:34 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-27 20:04:34 +1000 |
commit | e1be2ab4297ba7a84489c87799857d986086df3d (patch) | |
tree | ac29673a54910b23b9cdc9a5fb29a68914f53f7e /source/game/StarNetPacketSocket.cpp | |
parent | 372921abdeecdf2556cf09f6dba5881a8a694b54 (diff) |
finalize network improvements
can now disable zstd stream compression via config, peer-to-peer uses stream compression now, also made the server commands script a bit nicer
Diffstat (limited to 'source/game/StarNetPacketSocket.cpp')
-rw-r--r-- | source/game/StarNetPacketSocket.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/game/StarNetPacketSocket.cpp b/source/game/StarNetPacketSocket.cpp index 2dd6f92..4caeea0 100644 --- a/source/game/StarNetPacketSocket.cpp +++ b/source/game/StarNetPacketSocket.cpp @@ -467,6 +467,7 @@ bool P2PPacketSocket::writeData() { if (m_socket) { while (!m_outputMessages.empty()) { if (m_socket->sendMessage(m_outputMessages.first())) { + m_outgoingStats.mix(m_outputMessages.first().size()); m_outputMessages.removeFirst(); workDone = true; } else { |