1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-25 00:53:22 +00:00
mpv/video/out/opengl
wm4 83884fdf03 vo_gpu: glx: use GLX_OML_sync_control for better vsync reporting
Use the extension to compute the (hopefully correct) video delay and
vsync phase.

This is very fuzzy, because the latency will suddenly be applied after
some frames have already been shown. This means there _will_ be "jumps"
in the time accounting, which can lead to strange effects at start of
playback (such as making initial "dropped" etc. frames worse). The only
reasonable way to fix this would be running a few dummy frame swaps at
start of playback until the latency is known. The same happens when
unpausing.

This only affects display-sync mode.

Correct function was not confirmed. It only "looks right". I don't have
the equipment to make scientifically correct measurements.

A potentially bad thing is that we trust the timestamps we're receiving.
Out of bounds timestamps could wreak havoc. On the other hand, this will
probably cause the higher level code to panic and just disable DS.

As a further caveat, this makes a bunch of assumptions about UST
timestamps. If there are delayed frames (i.e. we skipped one or more
vsyncs), the latency logic is mostly reset. There is no attempt to make
the vo.c skipped vsync logic to use this. Also, the latency computation
determines a vsync duration, and there's no effort to reconcile or share
the vo.c logic for determining vsync duration.
2018-12-06 10:30:14 +01:00
..
angle_dynamic.c
angle_dynamic.h
common.c cocoa-cb: add Apple Software Renderer support 2018-09-30 17:13:34 +03:00
common.h client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
context_android.c
context_angle.c
context_cocoa.c cocoa: change deprecation warning from opengl-cb to libmpv 2018-04-29 15:03:47 +03:00
context_drm_egl.c drm: rename plane options to better, invariant, names 2018-12-01 15:42:20 +02:00
context_dxinterop.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
context_glx.c vo_gpu: glx: use GLX_OML_sync_control for better vsync reporting 2018-12-06 10:30:14 +01:00
context_mali_fbdev.c
context_rpi.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
context_vdpau.c
context_wayland.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
context_win.c
context_x11egl.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
context.c vo_gpu: glx: use GLX_OML_sync_control for better vsync reporting 2018-12-06 10:30:14 +01:00
context.h vo_gpu: glx: use GLX_OML_sync_control for better vsync reporting 2018-12-06 10:30:14 +01:00
egl_helpers.c egl_helpers: change minimum framebuffer size to 8 bit per component 2018-04-29 02:21:32 +03:00
egl_helpers.h
formats.c
formats.h
gl_headers.h
hwdec_cuda.c vo_gpu: hwdec_cuda: Guard GL and Vulkan headers properly 2018-11-18 23:50:38 +02:00
hwdec_d3d11egl.c
hwdec_d3d11eglrgb.c
hwdec_drmprime_drm.c drm: rename plane options to better, invariant, names 2018-12-01 15:42:20 +02:00
hwdec_dxva2egl.c
hwdec_dxva2gldx.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
hwdec_ios.m hwdec_ios: fix crash after mapper_init failure 2018-04-17 01:06:29 +03:00
hwdec_osx.c
hwdec_rpi.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
hwdec_vaegl.c hwdec_vaegl: Fix VAAPI EGL interop used with gpu-context=drm 2018-07-09 02:33:35 +03:00
hwdec_vdpau.c
libmpv_gl.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
ra_gl.c vo_gpu: opengl: disable compute shaders for old GLSL 2018-11-17 00:49:10 +01:00
ra_gl.h
utils.c
utils.h