Changeset 3349 for code/branches/resource/src/core/GraphicsManager.cc
- Timestamp:
- Jul 25, 2009, 2:14:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/GraphicsManager.cc
r3346 r3349 196 196 this->renderWindow_->setActive(true); 197 197 198 // render 198 // Time before rendering 199 uint64_t timeBeforeTick = time.getRealMicroseconds(); 200 201 // Render frame 199 202 ogreRoot_->_updateAllRenderTargets(); 203 204 uint64_t timeAfterTick = time.getRealMicroseconds(); 205 // Subtract the time used for rendering from the tick time counter 206 Game::getInstance().subtractTickTime(timeAfterTick - timeBeforeTick); 200 207 201 208 // again, just to be sure OGRE works fine
Note: See TracChangeset
for help on using the changeset viewer.