This is the documentation for Enlighten.
class Geo GeoFrameTime
class Geo::GeoFrameTime
└>Geo::GeoSingleton< GeoFrameTime >
This class measures frame rate and also computes a running average of the last n frames.
It's designed as a singleton.
Variables
Name | Description |
|---|---|
tClass * m_Singleton = NULL | Pointer to the singleton instance or NULL if not started. |
const float ms_DefaultFramerate | The framerate to return when there has not yet been enough samples. |
const Geo::s32 ms_NumAverageFrames = 300 | The number of frames to average over. |
Functions
Name | Description |
|---|---|
Destructor. | |
Destructor clears singleton pointer. | |
Constructor just sets up defaults. | |
Constructor initialises singleton pointer. | |
Returns a pointer to the singleton instance. | |
Returns number of seconds since the beginning. | |
Returns average of frame rate over a number of frames. | |
Returns frame time averaged over a number of frames. | |
Get the constant frame rate. | |
Returns number of update calls made. | |
Returns current frame rate. | |
Returns length of last frame in seconds. | |
Returns the maximum frame time over the same averaged period as GetAverageFrameTime() | |
Returns true if the singleton is available. | |
Return true if we are paused. | |
Find out if we're running with a constant frame rate. | |
Pause the timer, handles nested pause calls but they are to be avoided. | |
Enable/disable constant frame rate mode and set rate. | |
Setup the singleton instance. | |
Release the singleton instance. | |
Update the frame time - increments frame number and calculates frame time as elapsed time since last call. |
Geo::GeoFrameTime::~GeoFrameTime
public: ~GeoFrameTime()
Destructor.