diff options
author | wm4 <wm4@nowhere> | 2014-08-15 23:36:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-15 23:36:02 +0200 |
commit | 4a297554bcbce5821bf002ce7955bc27767488e3 (patch) | |
tree | 2b7a5b3f09346690fc44b577f7cedaf35574ace8 /video/out/vo_opengl.c | |
parent | 543ba6c114303c8c3a71b37864f6d901c41808eb (diff) | |
download | mpv-4a297554bcbce5821bf002ce7955bc27767488e3.tar.bz2 mpv-4a297554bcbce5821bf002ce7955bc27767488e3.tar.xz |
vo_opengl: if glfinish is used, also call it after swappping
It seems that at least on nvidia systems with composting disabled, we
can get it to block deterministically on the actual vsync event, which
should improve framedropping.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index ae5f1f9bd0..c80506039c 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -105,6 +105,9 @@ static void flip_page(struct vo *vo) if (p->frames_rendered > 5) gl_video_set_debug(p->renderer, false); + if (p->use_glFinish) + p->gl->Finish(); + mpgl_unlock(p->glctx); } |