Inital Commit
This commit is contained in:
+15
-4
@@ -47,8 +47,6 @@ namespace Server
|
||||
private static DateTime _ProfileStart;
|
||||
private static TimeSpan _ProfileTime;
|
||||
|
||||
public static MessagePump MessagePump { get; set; }
|
||||
|
||||
public static Slice Slice;
|
||||
|
||||
public static bool Profiling
|
||||
@@ -453,6 +451,19 @@ namespace Server
|
||||
Process = Process.GetCurrentProcess();
|
||||
Assembly = Assembly.GetEntryAssembly();
|
||||
|
||||
// Disable Windows-only process priority on Linux/Mono
|
||||
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||
{
|
||||
try
|
||||
{
|
||||
Process.PriorityClass = ProcessPriorityClass.High;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (Thread != null)
|
||||
{
|
||||
Thread.Name = "Core Thread";
|
||||
@@ -641,7 +652,7 @@ namespace Server
|
||||
|
||||
ScriptCompiler.Invoke("Initialize");
|
||||
|
||||
MessagePump messagePump = MessagePump = new MessagePump();
|
||||
MessagePump.Start();
|
||||
|
||||
_TimerThread.Start();
|
||||
|
||||
@@ -671,7 +682,7 @@ namespace Server
|
||||
Item.ProcessDeltaQueue();
|
||||
|
||||
Timer.Slice();
|
||||
messagePump.Slice();
|
||||
MessagePump.Slice();
|
||||
|
||||
NetState.FlushAll();
|
||||
NetState.ProcessDisposedQueue();
|
||||
|
||||
Reference in New Issue
Block a user