优化网络消息处理的睡眠时间,减少CPU占用;扩展连接配置以支持更多参数
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user