Logo Search packages:      
Sourcecode: ogre version File versions  Download package

void Ogre::Root::setFrameSmoothingPeriod ( Real  period  )  [inline]

Sets the period over which OGRE smooths out fluctuations in frame times.

OGRE by default gives you the raw frame time, but can optionally smooths it out over several frames, in order to reduce the noticeable effect of occasional hiccups in framerate. These smoothed values are passed back as parameters to FrameListener calls.
This method allow you to tweak the smoothing period, and is expressed in seconds. Setting it to 0 will result in completely unsmoothed frame times (the default).

Definition at line 844 of file OgreRoot.h.

{ mFrameSmoothingTime = period; }

Generated by  Doxygen 1.6.0   Back to index