OpenLayer Offline Manual

OpenLayer | FpsCounter | Pause Pause
static void Pause();
Pauses the FPS counter. If your game pauses for a moment you should pause the FPS counter as well, or otherwise when the game continues the FPS will be totally wrong and the game speed much higher than it should be. To resume the FPS counter, call FpsCounter::Resume(). Examples if( gamePaused ) { // Pause the FPS counter // FpsCounter::Pause(); // Wait until the game should continue... // Resume the FPS counter // FpsCounter::Resume(); } 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 Pause? Click here.