From e7d902bdc0bac2f8d5db1ce8b5fdd4757e31fd08 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Jan 2017 12:04:17 +0100 Subject: vo: log timings around flipping/waiting Found those useful. --- video/out/vo.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'video') diff --git a/video/out/vo.c b/video/out/vo.c index 64bf7ab051..f0c865d269 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -808,7 +808,7 @@ static bool render_frame(struct vo *vo) pthread_mutex_unlock(&in->lock); wakeup_core(vo); // core can queue new video now - MP_STATS(vo, "start video"); + MP_STATS(vo, "start video-draw"); if (vo->driver->draw_frame) { vo->driver->draw_frame(vo, frame); @@ -816,12 +816,15 @@ static bool render_frame(struct vo *vo) vo->driver->draw_image(vo, mp_image_new_ref(frame->current)); } + MP_STATS(vo, "end video-draw"); + wait_until(vo, target); + MP_STATS(vo, "start video-flip"); + vo->driver->flip_page(vo); - MP_STATS(vo, "end video"); - MP_STATS(vo, "video_end"); + MP_STATS(vo, "end video-flip"); pthread_mutex_lock(&in->lock); in->dropped_frame = prev_drop_count < vo->in->drop_count; -- cgit v1.2.3