Ignore:
Timestamp:
Apr 29, 2012, 10:02:20 PM (8 years ago)
Author:
sam
Message:

core: make timers second-based rather than millisecond-based.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ticker.cpp

    r1144 r1309  
    189189        else
    190190        {
    191             data->deltams = data->timer.GetMs();
     191            data->deltams = 1000.0f * data->timer.Get();
    192192            data->bias += data->deltams;
    193193        }
     
    397397        framems = data->bias + 200.0f; // Don't go below 5 fps
    398398    if (framems > data->bias)
    399         data->timer.WaitMs(framems - data->bias);
     399        data->timer.Wait(1e-3f * (framems - data->bias));
    400400
    401401    /* If recording, do not try to compensate for lag. */
Note: See TracChangeset for help on using the changeset viewer.