Core/Time: Remove artificially high minimal update intervals

Port From (https://github.com/TrinityCore/TrinityCore/commit/3a67e376811743be208da4aab8a9e452e1ae637e)
This commit is contained in:
hondacrx
2022-02-22 13:54:46 -05:00
parent 8ce8408f91
commit 338a861cd9
5 changed files with 14 additions and 13 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ namespace Framework.Networking
{
Log.outDebug(LogFilter.Network, "Network Thread Starting");
int sleepTime = 10;
int sleepTime = 1;
while (!_stopped)
{
Thread.Sleep(sleepTime);
@@ -116,7 +116,7 @@ namespace Framework.Networking
}
uint diff = Time.GetMSTimeDiffToNow(tickStart);
sleepTime = (int)(diff > 10 ? 0 : 10 - diff);
sleepTime = (int)(diff > 1 ? 0 : 1 - diff);
}
Log.outDebug(LogFilter.Misc, "Network Thread exits");