Implement a simple benchmarking mode which logs FPS to a file

Very useful to compare performance between two builds, check the impact of
a configuration option, etc. FPS log is stored in User/Logs/fps.txt and is
reset each time you launch a game. Only enabled if you check the "Log FPS
to file" option in your graphics settings.

Could be improved a bit: currently logs only every 1s (so you can't really
see small variations), maybe output more infos to the fps.txt like
average/stddev (but Excel/Libreoffice/Google Docs can compute that easily
too).
This commit is contained in:
Pierre Bourdon
2012-10-04 05:41:02 +02:00
parent ac2ce8b16e
commit 8cefcaa94c
11 changed files with 119 additions and 36 deletions

View File

@ -183,6 +183,7 @@
<ClCompile Include="Src\DLCache.cpp" />
<ClCompile Include="Src\EmuWindow.cpp" />
<ClCompile Include="Src\Fifo.cpp" />
<ClCompile Include="Src\FPSCounter.cpp" />
<ClCompile Include="Src\FramebufferManagerBase.cpp" />
<ClCompile Include="Src\HiresTextures.cpp" />
<ClCompile Include="Src\ImageWrite.cpp" />
@ -228,6 +229,7 @@
<ClInclude Include="Src\DLCache.h" />
<ClInclude Include="Src\EmuWindow.h" />
<ClInclude Include="Src\Fifo.h" />
<ClInclude Include="Src\FPSCounter.h" />
<ClInclude Include="Src\FramebufferManagerBase.h" />
<ClInclude Include="Src\HiresTextures.h" />
<ClInclude Include="Src\ImageWrite.h" />