summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-10-21 11:09:01 +0200
committerwm4 <wm4@nowhere>2015-10-21 11:32:31 +0200
commiteb66038d4ff9dd2faadd317d8eb777ebbaa9687f (patch)
treeb9a4780917cbda99d36424a50ca6893f529883ef
parent1ee8ce75f1f079e7d482297abd0848689718b35b (diff)
downloadmpv-eb66038d4ff9dd2faadd317d8eb777ebbaa9687f.tar.bz2
mpv-eb66038d4ff9dd2faadd317d8eb777ebbaa9687f.tar.xz
vo_opengl: make the default debanding settings less excessive
It's great that the new algorithm supports multiple placebo iterations and all, but it's really not necessary and hurts performance in the general case for the sake of the 0.1% that actually pause the screen and look for minute differences. Signed-off-by: wm4 <wm4@nowhere>
-rw-r--r--DOCS/man/vo.rst12
-rw-r--r--video/out/opengl/video_shaders.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst
index 80eed25ef5..7b6358be6e 100644
--- a/DOCS/man/vo.rst
+++ b/DOCS/man/vo.rst
@@ -611,11 +611,8 @@ Available video output drivers are:
``deband-iterations=<1..16>``
The number of debanding steps to perform per sample. Each step reduces
a bit more banding, but takes time to compute. Note that the strength
- of each step falls off very quickly, so high numbers are practically
- useless. (Default 4)
-
- If the performance hit of debanding is too great, you can reduce this
- to 2 or 1 with marginal visual quality loss.
+ of each step falls off very quickly, so high numbers (>4) are
+ practically useless. (Default 1)
``deband-threshold=<0..4096>``
The debanding filter's cut-off threshold. Higher numbers increase the
@@ -625,7 +622,10 @@ Available video output drivers are:
``deband-range=<1..64>``
The debanding filter's initial radius. The radius increases linearly
for each iteration. A higher radius will find more gradients, but
- a lower radius will smooth more aggressively. (Default 8)
+ a lower radius will smooth more aggressively. (Default 16)
+
+ If you increase the ``deband-iterations``, you should probably
+ decrease this to compensate.
``deband-grain=<0..4096>``
Add some extra noise to the image. This significantly helps cover up
diff --git a/video/out/opengl/video_shaders.c b/video/out/opengl/video_shaders.c
index 71aee96fcb..917d1939c5 100644
--- a/video/out/opengl/video_shaders.c
+++ b/video/out/opengl/video_shaders.c
@@ -326,9 +326,9 @@ struct deband_opts {
};
const struct deband_opts deband_opts_def = {
- .iterations = 4,
+ .iterations = 1,
.threshold = 64.0,
- .range = 8.0,
+ .range = 16.0,
.grain = 48.0,
};