Changeset 2554
- Timestamp:
- Dec 30, 2008, 8:05:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/gamestates/GSRoot.cc
r2553 r2554 223 223 224 224 // STATISTICS 225 uint32_t currentTickTime = timeAfterTick - timeBeforeTick; 226 statisticsTickInfo tickInfo = {timeAfterTick, currentTickTime}; 225 statisticsTickInfo tickInfo = {timeAfterTick, timeAfterTick - timeBeforeTick}; 227 226 statisticsTickTimes_.push_back(tickInfo); 228 227 … … 249 248 250 249 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; 252 251 this->avgTickTime_ = (float)this->periodTickTime_ / framesPerPeriod / 1000.0; 253 252
Note: See TracChangeset
for help on using the changeset viewer.