优化网络消息处理的睡眠时间,减少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

@@ -52,7 +52,7 @@ void SteamMessageHandler::run() {
pollMessages();
// Sleep a bit to avoid busy loop
std::this_thread::sleep_for(std::chrono::milliseconds(10));
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
}