Framerate counter should count frames, not scenes.

This commit is contained in:
Shpoike 2024-01-25 10:49:06 +00:00
parent 03e5fe3954
commit 78b5a73ee6

View file

@ -533,12 +533,12 @@ void SCR_DrawFPS (void)
int frames;
elapsed_time = realtime - oldtime;
frames = r_framecount - oldframecount;
frames = host_framecount - oldframecount;
if (elapsed_time < 0 || frames < 0)
{
oldtime = realtime;
oldframecount = r_framecount;
oldframecount = host_framecount;
return;
}
// update value every 3/4 second
@ -546,7 +546,7 @@ void SCR_DrawFPS (void)
{
lastfps = frames / elapsed_time;
oldtime = realtime;
oldframecount = r_framecount;
oldframecount = host_framecount;
}
if (scr_showfps.value)