From 2c572e2bb1cfa4e225a6a1599f5ecdbcf4bf2dc6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 13 Mar 2018 11:23:23 +0100 Subject: video: add an option to tune waiting for video timing Probably mostly useful for the libmpv render API. --- libmpv/render.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libmpv') diff --git a/libmpv/render.h b/libmpv/render.h index 64a317d73c..75153befb8 100644 --- a/libmpv/render.h +++ b/libmpv/render.h @@ -270,6 +270,12 @@ void mpv_render_context_set_update_callback(mpv_render_context *ctx, * notifies you when a new frame was added. The details potentially depend on * the backends and the provided parameters. * + * Generally, libmpv will invoke your update callback some time before the video + * frame should be shown, and then lets this function block until the supposed + * display time. This will limit your rendering to video FPS. You can prevent + * this by setting the "video-timing-offset" global option to 0. (This applies + * only to "audio" video sync mode.) + * * @param ctx a valid render context * @param params an array of parameters, terminated by type==0. Which parameters * are required depends on the backend. It's left unspecified what -- cgit v1.2.3