summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-29 18:40:54 +0200
committerwm4 <wm4@nowhere>2012-10-03 03:17:53 +0200
commit5d60ac11b58308fd7d1d828fa9cfd9acd3ea0a96 (patch)
treefa0028daa7085148c6cfdd06011c76f4d6cbcb63
parent47d15a5b6bfea3a17cd33605b8f5f2aebf3cc681 (diff)
downloadmpv-5d60ac11b58308fd7d1d828fa9cfd9acd3ea0a96.tar.bz2
mpv-5d60ac11b58308fd7d1d828fa9cfd9acd3ea0a96.tar.xz
vo_opengl: use PBOs by default with opengl-hq
It's not really known whether PBO use causes problems of any kind (most likely not). They should slightly increase performance. Use them by default with "opengl-hq". Even though PBOs don't have anything to do with rendering quality, "opengl-hq" provides a test bed for features that should be enabled by default, but aren't out of fear for regressions.
-rw-r--r--DOCS/man/en/vo.rst2
-rw-r--r--libvo/vo_opengl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/en/vo.rst b/DOCS/man/en/vo.rst
index 32c6077cb3..fcaa6b0210 100644
--- a/DOCS/man/en/vo.rst
+++ b/DOCS/man/en/vo.rst
@@ -446,7 +446,7 @@ opengl-hq
This is equivalent to:
- | --vo=opengl:lscale=lanczos2:fancy-downscaling:dither-depth=0
+ | --vo=opengl:lscale=lanczos2:fancy-downscaling:dither-depth=0:pbo
Note that some cheaper LCDs do dithering that gravely interferes with
vo_opengl's dithering. Disabling dithering with ``dither-depth=-1`` helps.
diff --git a/libvo/vo_opengl.c b/libvo/vo_opengl.c
index 111f5dcd11..842b9c49f5 100644
--- a/libvo/vo_opengl.c
+++ b/libvo/vo_opengl.c
@@ -2329,7 +2329,7 @@ static int preinit(struct vo *vo, const char *arg)
.vo = vo,
.colorspace = MP_CSP_DETAILS_DEFAULTS,
.use_npot = 1,
- .use_pbo = 0,
+ .use_pbo = hq,
.swap_interval = vo_vsync,
.osd_color = 0xffffff,
.dither_depth = hq ? 0 : -1,