summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-23 19:44:46 +0200
committerwm4 <wm4@nowhere>2016-09-23 19:44:46 +0200
commit9664bc23d524031d6a14002295f8cf68fe0d4cc9 (patch)
tree447515302f2a853d827e8a0428b93593b594e6f3
parent6f6c4a57ec11dc75828d3eaa8422936e912e9bb5 (diff)
downloadmpv-9664bc23d524031d6a14002295f8cf68fe0d4cc9.tar.bz2
mpv-9664bc23d524031d6a14002295f8cf68fe0d4cc9.tar.xz
vo: log framedrops
Seems useful. (This was possibly added ages ago and then removed.)
-rw-r--r--video/out/vo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 74449a9296..4b28aadaa1 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -830,7 +830,9 @@ static bool render_frame(struct vo *vo)
update_vsync_timing_after_swap(vo);
}
- if (!in->dropped_frame) {
+ if (in->dropped_frame) {
+ MP_STATS(vo, "drop-vo");
+ } else {
vo->want_redraw = false;
in->want_redraw = false;
in->request_redraw = false;