mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Create MSG_FRAMES
This commit is contained in:
parent
e4be1f53a3
commit
acd68519de
@ -1008,9 +1008,8 @@ bool video_monitor_get_fps(char *buf, size_t size,
|
||||
if (settings->fps_show)
|
||||
{
|
||||
char fps_text[64];
|
||||
snprintf(fps_text, sizeof(fps_text), " FPS: %6.1f", last_fps);
|
||||
snprintf(fps_text, sizeof(fps_text), " FPS: %6.1f || ", last_fps);
|
||||
strlcat(buf, fps_text, size);
|
||||
strlcat(buf, " || ", size);
|
||||
}
|
||||
|
||||
strlcat(buf, "Frames: ", size);
|
||||
@ -1023,8 +1022,10 @@ bool video_monitor_get_fps(char *buf, size_t size,
|
||||
}
|
||||
|
||||
if (buf_fps && settings->fps_show)
|
||||
snprintf(buf_fps, size_fps, "FPS: %6.1f || Frames: " STRING_REP_UINT64,
|
||||
last_fps, (unsigned long long)video_driver_frame_count);
|
||||
snprintf(buf_fps, size_fps, "FPS: %6.1f || %s: " STRING_REP_UINT64,
|
||||
last_fps,
|
||||
msg_hash_to_str(MSG_FRAMES),
|
||||
(unsigned long long)video_driver_frame_count);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -2100,6 +2100,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||
return "Error";
|
||||
case MSG_MEMORY:
|
||||
return "Memory";
|
||||
case MSG_FRAMES:
|
||||
return "Frames";
|
||||
case MSG_IN_BYTES:
|
||||
return "in bytes";
|
||||
case MSG_IN_MEGABYTES:
|
||||
|
@ -140,6 +140,7 @@ enum msg_hash_enums
|
||||
MSG_CONTENT_LOADING_SKIPPED_IMPLEMENTATION_WILL_DO_IT,
|
||||
MSG_PROGRAM,
|
||||
MSG_ERROR,
|
||||
MSG_FRAMES,
|
||||
MSG_FOUND_SHADER,
|
||||
MSG_LOADING_HISTORY_FILE,
|
||||
MSG_COULD_NOT_READ_STATE_FROM_MOVIE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user