FPSCounter: Add "Log render time to file" feature.

Allows for a more accurate performance measurement.
This commit is contained in:
Jules Blok
2014-07-09 17:03:17 +02:00
parent 29873a7c55
commit efeadb7fe9
4 changed files with 28 additions and 1 deletions

View File

@ -58,6 +58,7 @@ void VideoConfig::Load(const std::string& ini_file)
settings->Get("SafeTextureCacheColorSamples", &iSafeTextureCache_ColorSamples,128);
settings->Get("ShowFPS", &bShowFPS, false);
settings->Get("LogFPSToFile", &bLogFPSToFile, false);
settings->Get("LogRenderTimeToFile", &bLogRenderTimeToFile, false);
settings->Get("ShowInputDisplay", &bShowInputDisplay, false);
settings->Get("OverlayStats", &bOverlayStats, false);
settings->Get("OverlayProjStats", &bOverlayProjStats, false);
@ -230,6 +231,7 @@ void VideoConfig::Save(const std::string& ini_file)
settings->Set("SafeTextureCacheColorSamples", iSafeTextureCache_ColorSamples);
settings->Set("ShowFPS", bShowFPS);
settings->Set("LogFPSToFile", bLogFPSToFile);
settings->Set("LogRenderTimeToFile", bLogRenderTimeToFile);
settings->Set("ShowInputDisplay", bShowInputDisplay);
settings->Set("OverlayStats", bOverlayStats);
settings->Set("OverlayProjStats", bOverlayProjStats);