Ignore:
Timestamp:
Feb 9, 2011, 12:23:54 AM (10 years ago)
Author:
sam
Message:

Store the requested FPS in the Ticker class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ticker.cpp

    r616 r617  
    140140}
    141141
     142void Ticker::Setup(float fps)
     143{
     144    data->fps = fps;
     145}
     146
    142147void Ticker::TickGame()
    143148{
     
    309314}
    310315
    311 void Ticker::ClampFps(float deltams)
     316void Ticker::ClampFps()
    312317{
    313318    Profiler::Stop(Profiler::STAT_TICK_BLIT);
     319
     320    float deltams = data->fps ? 1000.0f / data->fps : 0.0f;
    314321
    315322    if (deltams > data->bias + 200.0f)
Note: See TracChangeset for help on using the changeset viewer.