Changeset 2817 for code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
- Timestamp:
- Mar 21, 2009, 10:17:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r2816 r2817 44 44 #include "overlays/console/InGameConsole.h" 45 45 #include "gui/GUIManager.h" 46 47 // for compatibility48 46 #include "GraphicsManager.h" 47 #include "Game.h" 49 48 50 49 namespace orxonox 51 50 { 52 51 GSGraphics::GSGraphics() 53 : GameState <GSRoot>("graphics")52 : GameState("graphics") 54 53 , inputManager_(0) 55 54 , console_(0) … … 157 156 uint64_t timeAfterTick = time.getRealMicroseconds(); 158 157 159 // Also add our tick time to the list in GSRoot 160 this->getParent()->addTickTime(timeAfterTick - timeBeforeTick); 161 162 // Update statistics overlay. Note that the values only change periodically in GSRoot. 163 GraphicsManager::getInstance().setAverageFramesPerSecond(this->getParent()->getAvgFPS()); 164 GraphicsManager::getInstance().setAverageTickTime(this->getParent()->getAvgTickTime()); 158 // Also add our tick time 159 Game::getInstance().addTickTime(timeAfterTick - timeBeforeTick); 165 160 166 161 this->graphicsManager_->update(time);
Note: See TracChangeset
for help on using the changeset viewer.