smol dupe
This commit is contained in:
1 parent
96f7ff550c
commit
a0437713bf
1 file changed
+2
-3
+2
-3
@@ -395,9 +395,10 @@ void SCR_CalculateFPS(void)
|
||||
fps_enter = fps_finish;
|
||||
|
||||
#ifdef USE_FPS_SAMPLES
|
||||
total_frame_time += frameElapsed;
|
||||
|
||||
if (cv_accuratefps.value)
|
||||
{
|
||||
total_frame_time += frameElapsed;
|
||||
if (frame_index++ >= NUM_FPS_SAMPLES || total_frame_time >= MAX_FRAME_TIME)
|
||||
{
|
||||
averageFPS = 1.0 / (total_frame_time / frame_index);
|
||||
@@ -407,8 +408,6 @@ void SCR_CalculateFPS(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
total_frame_time += frameElapsed;
|
||||
|
||||
if (total_frame_time >= MAX_FRAME_TIME)
|
||||
{
|
||||
static int sampleIndex = 0;
|
||||
|
||||
Reference in new issue
Block a user