Improve game loop
Environment.TickCount was replaced with Game.RunTime that's based on Stopwatch for increased accuracy.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
public static Widget Root = new RootWidget();
|
||||
|
||||
public static int LastTickTime = Environment.TickCount;
|
||||
public static int LastTickTime = Game.RunTime;
|
||||
|
||||
static Stack<Widget> WindowList = new Stack<Widget>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user