fix(Core/World): Remove artificially high minimal update intervals an… (#15422)
fix(Core/World): Remove artificially high minimal update intervals and Allow specifying minimum world updates diff in config * Allow specifying minimum world updates diff in config * Remove artificially high minimal update intervals * cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/29a4153f0038526ee6df690ec3499d66630e5071) * cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/de4920de81a495ed8d6b04cf68f3912c74921f48) * cherry-pick commit (https://github.com/jackpoz/TrinityCore/commit/32cef906b02562ffb129b095386a9314abde82f1) Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
@@ -121,8 +121,8 @@ protected:
|
||||
{
|
||||
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();
|
||||
|
||||
LOG_DEBUG("misc", "Network Thread exits");
|
||||
@@ -135,8 +135,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