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
View File
@@ -278,6 +278,7 @@ void PrefsManager::Init()
m_bTimestamping = false; m_bTimestamping = false;
m_bLogSkips = false; m_bLogSkips = false;
m_bLogCheckpoints = false; m_bLogCheckpoints = false;
m_bLogFPS = true;
m_bShowLoadingWindow = true; m_bShowLoadingWindow = true;
m_bMemoryCards = false; m_bMemoryCards = false;
@@ -551,6 +552,7 @@ void PrefsManager::ReadPrefsFromFile( CString sIni )
ini.GetValue( "Debug", "Timestamping", m_bTimestamping ); ini.GetValue( "Debug", "Timestamping", m_bTimestamping );
ini.GetValue( "Debug", "LogSkips", m_bLogSkips ); ini.GetValue( "Debug", "LogSkips", m_bLogSkips );
ini.GetValue( "Debug", "LogCheckpoints", m_bLogCheckpoints ); ini.GetValue( "Debug", "LogCheckpoints", m_bLogCheckpoints );
ini.GetValue( "Debug", "LogFPS", m_bLogFPS );
ini.GetValue( "Debug", "ShowLoadingWindow", m_bShowLoadingWindow ); ini.GetValue( "Debug", "ShowLoadingWindow", m_bShowLoadingWindow );
} }
@@ -791,6 +793,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
ini.SetValue( "Debug", "Timestamping", m_bTimestamping ); ini.SetValue( "Debug", "Timestamping", m_bTimestamping );
ini.SetValue( "Debug", "LogSkips", m_bLogSkips ); ini.SetValue( "Debug", "LogSkips", m_bLogSkips );
ini.SetValue( "Debug", "LogCheckpoints", m_bLogCheckpoints ); ini.SetValue( "Debug", "LogCheckpoints", m_bLogCheckpoints );
ini.SetValue( "Debug", "LogFPS", m_bLogFPS );
ini.SetValue( "Debug", "ShowLoadingWindow", m_bShowLoadingWindow ); ini.SetValue( "Debug", "ShowLoadingWindow", m_bShowLoadingWindow );
ini.WriteFile( STEPMANIA_INI_PATH ); ini.WriteFile( STEPMANIA_INI_PATH );
+1
View File
@@ -268,6 +268,7 @@ public:
bool m_bTimestamping; bool m_bTimestamping;
bool m_bLogSkips; bool m_bLogSkips;
bool m_bLogCheckpoints; bool m_bLogCheckpoints;
bool m_bLogFPS;
bool m_bShowLoadingWindow; bool m_bShowLoadingWindow;
/* Game-specific prefs: */ /* Game-specific prefs: */
+3 -1
View File
@@ -10,6 +10,7 @@
#include "RageSurface_Save_BMP.h" #include "RageSurface_Save_BMP.h"
#include "SDL_rotozoom.h" #include "SDL_rotozoom.h"
#include "RageSurface.h" #include "RageSurface.h"
#include "PrefsManager.h"
// //
// Statistics stuff // Statistics stuff
@@ -108,7 +109,8 @@ void RageDisplay::ProcessStatsOnFlip()
g_iCFPS = g_iFramesRenderedSinceLastReset / g_iNumChecksSinceLastReset; g_iCFPS = g_iFramesRenderedSinceLastReset / g_iNumChecksSinceLastReset;
g_iVPF = g_iVertsRenderedSinceLastCheck / g_iFPS; g_iVPF = g_iVertsRenderedSinceLastCheck / g_iFPS;
g_iFramesRenderedSinceLastCheck = g_iVertsRenderedSinceLastCheck = 0; 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 );
} }
} }