Skip to content

Commit

Permalink
Win32: Fixed build
Browse files Browse the repository at this point in the history
I seem to fall for this one regularly...
  • Loading branch information
skyjake committed Mar 13, 2012
1 parent 6c775a7 commit c81d9ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/dd_loop.c
Expand Up @@ -475,8 +475,6 @@ static void timeDeltaStatistics(int deltaMs)

void DD_WaitForOptimalUpdateTime(void)
{
if(Sys_IsShuttingDown()) return; // No need for finesse.

/// @todo This would benefit from microsecond-accurate timing.

// All times are in milliseconds.
Expand All @@ -488,6 +486,8 @@ void DD_WaitForOptimalUpdateTime(void)
// accuracy, so we can't use fractions of a millisecond.
const uint optimalDelta = (maxFrameRate > 0? 1000/maxFrameRate : 1);

if(Sys_IsShuttingDown()) return; // No need for finesse.

// This is when we would ideally like to make the update.
targetUpdateTime = prevUpdateTime + optimalDelta;

Expand Down

0 comments on commit c81d9ac

Please sign in to comment.