add pref bLogFPS

This commit is contained in:
Chris Danford
2004-09-12 18:14:39 +00:00
parent 30f1643741
commit 66246afeb7
3 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -10,6 +10,7 @@
#include "RageSurface_Save_BMP.h"
#include "SDL_rotozoom.h"
#include "RageSurface.h"
#include "PrefsManager.h"
//
// Statistics stuff
@@ -108,7 +109,8 @@ void RageDisplay::ProcessStatsOnFlip()
g_iCFPS = g_iFramesRenderedSinceLastReset / g_iNumChecksSinceLastReset;
g_iVPF = g_iVertsRenderedSinceLastCheck / g_iFPS;
g_iFramesRenderedSinceLastCheck = g_iVertsRenderedSinceLastCheck = 0;
LOG->Trace( "FPS: %d, CFPS %d, VPF: %d", g_iFPS, g_iCFPS, g_iVPF );
if( PREFSMAN->m_bLogFPS )
LOG->Trace( "FPS: %d, CFPS %d, VPF: %d", g_iFPS, g_iCFPS, g_iVPF );
}
}