Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2554


Ignore:
Timestamp:
Dec 30, 2008, 8:05:22 PM (16 years ago)
Author:
rgrieder
Message:

stupidity prevails!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/gamestates/GSRoot.cc

    r2553 r2554  
    223223
    224224        // STATISTICS
    225         uint32_t currentTickTime = timeAfterTick - timeBeforeTick;
    226         statisticsTickInfo tickInfo = {timeAfterTick, currentTickTime};
     225        statisticsTickInfo tickInfo = {timeAfterTick, timeAfterTick - timeBeforeTick};
    227226        statisticsTickTimes_.push_back(tickInfo);
    228227
     
    249248
    250249            uint32_t framesPerPeriod = this->statisticsTickTimes_.size();
    251             this->avgFPS_ = (float)framesPerPeriod / (currentTickTime - this->statisticsTickTimes_.front().tickTime) * 1000000.0;
     250            this->avgFPS_ = (float)framesPerPeriod / (timeAfterTick - this->statisticsTickTimes_.front().tickTime) * 1000000.0;
    252251            this->avgTickTime_ = (float)this->periodTickTime_ / framesPerPeriod / 1000.0;
    253252
Note: See TracChangeset for help on using the changeset viewer.