Inital Commit

This commit is contained in:
Ubuntu
2026-07-07 13:40:15 -04:00
parent 73701ff86e
commit b491e327dc
83 changed files with 8591 additions and 6895 deletions
+15 -4
View File
@@ -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();