优化网络消息处理的睡眠时间,减少CPU占用;扩展连接配置以支持更多参数

This commit is contained in:
Ayndpa
2025-11-19 13:47:01 +08:00
parent f2fde172e1
commit 3896a91433
3 changed files with 186 additions and 89 deletions

View File

@@ -119,7 +119,7 @@ private:
std::mutex connectionsMutex;
// Connection config
SteamNetworkingConfigValue_t g_connectionConfig[2];
SteamNetworkingConfigValue_t g_connectionConfig[3];
int g_retryCount;
const int MAX_RETRIES = 3;
int g_currentVirtualPort;