Changeset 7996 for code/branches/usability
- Timestamp:
- Feb 28, 2011, 4:10:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/libraries/core/GraphicsManager.cc
r7995 r7996 378 378 // Translate to Ogre float times before the update 379 379 float temp = lastFrameStartTime_; 380 lastFrameStartTime_ = (float) (timeBeforeTick / 1000000);380 lastFrameStartTime_ = (float)timeBeforeTick * 0.000001f; 381 381 evt.timeSinceLastFrame = lastFrameStartTime_ - temp; 382 382 evt.timeSinceLastEvent = lastFrameStartTime_ - lastFrameEndTime_; … … 401 401 // Translate to Ogre float times after the update 402 402 temp = lastFrameEndTime_; 403 lastFrameEndTime_ = (float) (timeAfterTick / 1000000);403 lastFrameEndTime_ = (float)timeBeforeTick * 0.000001f; 404 404 evt.timeSinceLastFrame = lastFrameEndTime_ - temp; 405 405 evt.timeSinceLastEvent = lastFrameEndTime_ - lastFrameStartTime_;
Note: See TracChangeset
for help on using the changeset viewer.