Fix start-game UI acceleration.

This commit is contained in:
Paul Chote
2014-03-19 20:01:56 +13:00
parent 1f9dd53b4d
commit e4ca66ab31

View File

@@ -170,7 +170,10 @@ namespace OpenRA
var uiTickDelta = tick - Ui.LastTickTime;
if (uiTickDelta >= Timestep)
{
Ui.LastTickTime += Timestep;
// Explained below for the world tick calculation
var integralTickTimestep = (uiTickDelta / Timestep) * Timestep;
Ui.LastTickTime += integralTickTimestep >= TimestepJankThreshold ? integralTickTimestep : Timestep;
Sync.CheckSyncUnchanged(world, Ui.Tick);
cursorFrame += 0.5f;
}