Pause 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
Questions about Pause? Click here. |