Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 28, 2011, 4:10:21 AM (14 years ago)
Author:
rgrieder
Message:

And I though I specifically paid attention to rounding problems. Brain short circuit

File:
1 edited

Legend:

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

    r7995 r7996  
    378378        // Translate to Ogre float times before the update
    379379        float temp = lastFrameStartTime_;
    380         lastFrameStartTime_ = (float)(timeBeforeTick / 1000000);
     380        lastFrameStartTime_ = (float)timeBeforeTick * 0.000001f;
    381381        evt.timeSinceLastFrame = lastFrameStartTime_ - temp;
    382382        evt.timeSinceLastEvent = lastFrameStartTime_ - lastFrameEndTime_;
     
    401401        // Translate to Ogre float times after the update
    402402        temp = lastFrameEndTime_;
    403         lastFrameEndTime_ = (float)(timeAfterTick / 1000000);
     403        lastFrameEndTime_ = (float)timeBeforeTick * 0.000001f;
    404404        evt.timeSinceLastFrame = lastFrameEndTime_ - temp;
    405405        evt.timeSinceLastEvent = lastFrameEndTime_ - lastFrameStartTime_;
Note: See TracChangeset for help on using the changeset viewer.