Improve game loop
Environment.TickCount was replaced with Game.RunTime that's based on Stopwatch for increased accuracy.
This commit is contained in:
2
OpenRA.Game/Network/OrderManager.cs
Executable file → Normal file
2
OpenRA.Game/Network/OrderManager.cs
Executable file → Normal file
@@ -35,7 +35,7 @@ namespace OpenRA.Network
|
||||
public int LocalFrameNumber;
|
||||
public int FramesAhead = 0;
|
||||
|
||||
public int LastTickTime = Environment.TickCount;
|
||||
public int LastTickTime = Game.RunTime;
|
||||
|
||||
public bool GameStarted { get { return NetFrameNumber != 0; } }
|
||||
public IConnection Connection { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user