Changeset 1621 for code/branches/hud/src/orxonox/GraphicsEngine.h
- Timestamp:
- Jun 23, 2008, 9:12:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/GraphicsEngine.h
r1618 r1621 72 72 int getWindowHeight() const; 73 73 float getWindowAspectRatio() const; 74 float getAverageF PS() const75 { if (renderWindow_) return this->renderWindow_->getAverageFPS(); else return 0.0f; }76 float getAverageRTR() const { return this->renderTimeRatio_; }77 void setAverage RTR(float rtr) { this->renderTimeRatio_ = rtr; }74 float getAverageFramesPerSecond() const { return this->avgFramesPerSecond_; } 75 float getAverageTickTime() const { return this->avgTickTime_; } 76 void setAverageTickTime(float tickTime) { this->avgTickTime_ = tickTime; } 77 void setAverageFramesPerSecond(float fps) { this->avgFramesPerSecond_ = fps; } 78 78 79 79 void setWindowActivity(bool activity) … … 113 113 int ogreLogLevelCritical_; //!< Corresponding Orxonx debug level for LL_CRITICAL 114 114 unsigned int detailLevelParticle_; //!< Detail level of particle effects (0: off, 1: low, 2: normal, 3: high) 115 float renderTimeRatio_; //!< Ratio between time required to render a frame and to tick() it 115 float avgTickTime_; //!< time in ms to tick() one frame 116 float avgFramesPerSecond_; //!< number of frames processed in one second 116 117 }; 117 118 }
Note: See TracChangeset
for help on using the changeset viewer.