parent
b433ccab09
commit
552144c24d
|
@ -1050,8 +1050,9 @@ bool video_monitor_get_fps(
|
||||||
video_driver_frame_time_samples[write_index] = new_time - fps_time;
|
video_driver_frame_time_samples[write_index] = new_time - fps_time;
|
||||||
fps_time = new_time;
|
fps_time = new_time;
|
||||||
|
|
||||||
if (!video_info.fullscreen)
|
if (video_info.fullscreen)
|
||||||
{
|
return false;
|
||||||
|
|
||||||
if ((video_driver_frame_count % FPS_UPDATE_INTERVAL) == 0)
|
if ((video_driver_frame_count % FPS_UPDATE_INTERVAL) == 0)
|
||||||
{
|
{
|
||||||
char frames_text[64];
|
char frames_text[64];
|
||||||
|
@ -1079,7 +1080,6 @@ bool video_monitor_get_fps(
|
||||||
strlcat(buf, frames_text, size);
|
strlcat(buf, frames_text, size);
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (buf_fps && video_info.fps_show)
|
if (buf_fps && video_info.fps_show)
|
||||||
snprintf(buf_fps, size_fps, "FPS: %6.1f || %s: " STRING_REP_UINT64,
|
snprintf(buf_fps, size_fps, "FPS: %6.1f || %s: " STRING_REP_UINT64,
|
||||||
|
|
Loading…
Reference in New Issue