Skip to content

Commit 13feed6

Browse files
committed
set dedicated server to high priority when game starts
1 parent 8a514b1 commit 13feed6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Shared/LobbyClient/DedicatedServer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ private void StartDedicated(string script)
354354

355355
process.Start();
356356

357+
357358
if (IsRunning)
358359
{
359360
DedicatedServerStarted?.Invoke(this, EventArgs.Empty);
@@ -443,6 +444,8 @@ private void talker_SpringEvent(object sender, Talker.SpringEventArgs e)
443444
Context.IngameStartTime = DateTime.UtcNow;
444445
foreach (var p in Context.ActualPlayers.Where(x => !x.IsSpectator)) p.IsIngameReady = true;
445446

447+
process.PriorityClass = ProcessPriorityClass.High;
448+
446449
BattleStarted(this, EventArgs.Empty);
447450
break;
448451

0 commit comments

Comments
 (0)