Skip to content

Commit

Permalink
Position Latency accurately in statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Dec 27, 2024
1 parent 1a751ef commit e6373f2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gfx/video_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4118,9 +4118,8 @@ void video_driver_frame(const void *data, unsigned width,

{
/* TODO/FIXME - localize */
size_t __len = strlcpy(video_info.stat_text, "LATENCY\n", sizeof(video_info.stat_text));
__len += snprintf(video_info.stat_text + __len,
sizeof(video_info.stat_text) - __len,
size_t __len = snprintf(video_info.stat_text,
sizeof(video_info.stat_text),
"CORE AV_INFO\n"
" Size: %u x %u\n"
" - Base: %u x %u\n"
Expand Down Expand Up @@ -4175,6 +4174,13 @@ void video_driver_frame(const void *data, unsigned width,
audio_stats.samples
);


/* TODO/FIXME - localize */
if ( (video_st->frame_delay_target > 0)
|| (video_info.runahead && !video_info.runahead_second_instance))
__len += strlcpy(video_info.stat_text + __len, "LATENCY\n",
sizeof(video_info.stat_text - __len));

/* TODO/FIXME - localize */
if (video_st->frame_delay_target > 0)
__len += snprintf(video_info.stat_text + __len, sizeof(video_info.stat_text) - __len,
Expand Down

0 comments on commit e6373f2

Please sign in to comment.