Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 25, 2009, 2:14:05 PM (15 years ago)
Author:
rgrieder
Message:

Moved InputManager, GUIManager and GraphicsManager handling from GSGraphics to Core.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/GraphicsManager.cc

    r3346 r3349  
    196196        this->renderWindow_->setActive(true);
    197197
    198         // render
     198        // Time before rendering
     199        uint64_t timeBeforeTick = time.getRealMicroseconds();
     200
     201        // Render frame
    199202        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);
    200207
    201208        // again, just to be sure OGRE works fine
Note: See TracChangeset for help on using the changeset viewer.