Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2009, 11:40:07 PM (15 years ago)
Author:
rgrieder
Message:

This should fix the fps limiter if you play longer than 232 nanoseconds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/Game.cc

    r6277 r6318  
    314314    void Game::updateFPSLimiter()
    315315    {
    316         uint32_t nextTime = gameClock_->getMicroseconds() - excessSleepTime_ + static_cast<uint32_t>(1000000.0f / fpsLimit_);
     316        uint64_t nextTime = gameClock_->getMicroseconds() - excessSleepTime_ + static_cast<uint32_t>(1000000.0f / fpsLimit_);
    317317        uint64_t currentRealTime = gameClock_->getRealMicroseconds();
    318318        while (currentRealTime < nextTime - minimumSleepTime_)
Note: See TracChangeset for help on using the changeset viewer.