Improve game loop

Environment.TickCount was replaced with Game.RunTime that's based on
Stopwatch for increased accuracy.
This commit is contained in:
Pavlos Touboulidis
2014-07-06 22:04:31 +03:00
parent fd68c81b15
commit b88b87b899
8 changed files with 246 additions and 159 deletions

2
OpenRA.Game/Network/OrderManager.cs Executable file → Normal file
View 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; }