OpenLayer Offline Manual

OpenLayer | FpsCounter | GetFps GetFps
static float GetFps();
Returns the frames per second the program runs at. Using this function requires to start the fps counter before the game loop starts and to call FpsCounter::NewFrameStarted() in the beginning of each frame. Examples // Get the fps // float fps = FpsCounter::GetFps(); Other functions of the class FpsCounter
Start | Starts the FPS counter
NewFrameStarted | Tells OpenLayer that a new game frame has started
GetDeltaTime | Get the elapsed game time between this and the previous frame
GetFps | Returns the frames per second the program runs at
Pause | Pauses the FPS counter
Resume | Resumes the paused FPS counter
Back to the main page of the manual Questions about GetFps? Click here.