Core/Time: Remove artificially high minimal update intervals
(cherry picked from commit 3a67e376811743be208da4aab8a9e452e1ae637e)
This commit is contained in:
1 parent
7f62463f36
commit
267cd04e57
5 files changed
+56
-15
No files matched your search
@@ -122,8 +122,8 @@ protected:
|
||||
{
|
||||
TC_LOG_DEBUG("misc", "Network Thread Starting");
|
||||
|
||||
_updateTimer.expires_from_now(boost::posix_time::milliseconds(10));
|
||||
_updateTimer.async_wait(std::bind(&NetworkThread<SocketType>::Update, this));
|
||||
_updateTimer.expires_from_now(boost::posix_time::milliseconds(1));
|
||||
_updateTimer.async_wait([this](boost::system::error_code const&) { Update(); });
|
||||
_ioContext.run();
|
||||
|
||||
TC_LOG_DEBUG("misc", "Network Thread exits");
|
||||
@@ -136,8 +136,8 @@ protected:
|
||||
if (_stopped)
|
||||
return;
|
||||
|
||||
_updateTimer.expires_from_now(boost::posix_time::milliseconds(10));
|
||||
_updateTimer.async_wait(std::bind(&NetworkThread<SocketType>::Update, this));
|
||||
_updateTimer.expires_from_now(boost::posix_time::milliseconds(1));
|
||||
_updateTimer.async_wait([this](boost::system::error_code const&) { Update(); });
|
||||
|
||||
AddNewSockets();
|
||||
|
||||
|
||||
Reference in new issue
Block a user