mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-27 11:41:49 +00:00
Show record high FPS
This commit is contained in:
parent
475ee2ed71
commit
f9cafde55c
@ -213,6 +213,7 @@ void hleEnterVblank(u64 userdata, int cyclesLate) {
|
||||
|
||||
if (g_Config.bShowFPSCounter)
|
||||
{
|
||||
static double highestFps = 0.0;
|
||||
static int lastFpsFrame = 0;
|
||||
static double lastFpsTime = 0.0;
|
||||
static double fps = 0.0;
|
||||
@ -224,13 +225,16 @@ void hleEnterVblank(u64 userdata, int cyclesLate) {
|
||||
{
|
||||
fps = (gpuStats.numFrames - lastFpsFrame) / (now - lastFpsTime);
|
||||
|
||||
if (fps > highestFps)
|
||||
highestFps = fps;
|
||||
|
||||
lastFpsFrame = gpuStats.numFrames;
|
||||
lastFpsTime = now;
|
||||
}
|
||||
|
||||
char stats[2048];
|
||||
|
||||
sprintf(stats, "FPS: %f", fps);
|
||||
sprintf(stats, "FPS: %f\nRecord high FPS: %f", fps, highestFps);
|
||||
|
||||
float zoom = 0.3f; /// g_Config.iWindowZoom;
|
||||
float soff = 0.3f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user