diff options
author | wm4 <wm4@nowhere> | 2015-04-09 19:22:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-09 19:22:54 +0200 |
commit | 4e8ee522f4df73a74befc093640fdf60a43053ec (patch) | |
tree | 43190d5bc5a894a9160b8b0766d34d7329237b90 /libmpv/opengl_cb.h | |
parent | 11556e05305c3d4e46e27c1d4a4521e334844755 (diff) | |
download | mpv-4e8ee522f4df73a74befc093640fdf60a43053ec.tar.bz2 mpv-4e8ee522f4df73a74befc093640fdf60a43053ec.tar.xz |
vo_opengl_cb: fix video timing somewhat
Increase the default queue size. This helps with "missed" frames due to
the asynchronous nature of the API. All the other VOs are synchronous,
so if rendering and displaying takes a while, the common code in vo.c
will be blocked until it can continue. But with opengl-cb, vo.c might
immediately push the next ready frame, which causes the current frame
to be dropped _if_ it wasn't rendered yet.
One could fix this by making vo.c wait a while (until the API user calls
the render function, which pulls the frame). But setting the default
queue size to 2 seems much simpler: instead of dropping the frame, it
will be pushed to the API user once the next renderer call finishes.
(This is still a bit strange, and will hopefully be cleaned up when
video scheduling is redone, but for now this appears to deliver
relatively good results.)
Diffstat (limited to 'libmpv/opengl_cb.h')
0 files changed, 0 insertions, 0 deletions