Add max size to statistics

This commit is contained in:
twinaphex 2018-03-24 12:08:43 +01:00
parent 9b8713aebd
commit 647f1a48a6
2 changed files with 5 additions and 3 deletions

View File

@ -2537,9 +2537,9 @@ void video_driver_frame(const void *data, unsigned width,
snprintf(video_info.stat_text,
sizeof(video_info.stat_text),
"Frontend Statistics:\n -Frame rate: %6.2f\n -Frame time: %6.2f\n -Frame time deviation: %6.2f\n"
"Video Statistics:\n -Frame rate: %6.2f\n -Frame time: %6.2f\n -Frame time deviation: %6.2f\n"
" -Frame count: %" PRIu64"\n -Viewport: %d x %d x %3.2f\n"
"Core Geometry:\n -Size: %u x %u\n -Aspect: %3.2f\nCore Timing:\n -FPS: %3.2f\n -Sample Rate: %6.2f\n",
"Core Geometry:\n -Size: %u x %u\n -Max Size: %u x %u\n -Aspect: %3.2f\nCore Timing:\n -FPS: %3.2f\n -Sample Rate: %6.2f\n",
video_info.frame_rate,
video_info.frame_time,
100.0 * stddev,
@ -2549,6 +2549,8 @@ void video_driver_frame(const void *data, unsigned width,
video_info.refresh_rate,
av_info->geometry.base_width,
av_info->geometry.base_height,
av_info->geometry.max_width,
av_info->geometry.max_height,
av_info->geometry.aspect_ratio,
av_info->timing.fps,
av_info->timing.sample_rate);

View File

@ -451,7 +451,7 @@ typedef struct video_frame_info
float xmb_alpha_factor;
char fps_text[128];
char stat_text[256];
char stat_text[512];
char chat_text[256];
uint64_t frame_count;