summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-01 20:43:46 +0100
committerwm4 <wm4@nowhere>2015-11-01 20:47:57 +0100
commit30a61064773e4fcb4c20a90787af95bc7d0e6d12 (patch)
tree8ae343f6dcfe428a54e3db5dd523870ad8b78f20 /DOCS
parentf1e767b6a2539b9c4760cc63f2e8d96308153ebc (diff)
downloadmpv-30a61064773e4fcb4c20a90787af95bc7d0e6d12.tar.bz2
mpv-30a61064773e4fcb4c20a90787af95bc7d0e6d12.tar.xz
vo_opengl: win32: try to enable DwmFlush by default
Enable it by default, but not unconditionally. Add an "auto" mode, which disable DwmFlush if the compositor is (probably) inactive. Let's see how this goes. Since I accidentally enabled DwmFlush always by default (more or less) in a previous commit touching this code, this is probably mostly just cargo-culting, and it's uncertain whether it does anything. Note that I still got bad vsync behavior when fullscreening mpv, and making another window visible on the same screen. This happens even if forcing DWM.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/vo.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst
index 2cebd153ff..b2a6cd7045 100644
--- a/DOCS/man/vo.rst
+++ b/DOCS/man/vo.rst
@@ -676,11 +676,15 @@ Available video output drivers are:
the number of frames the GPU queues ahead (which also has an influence
on vsync).
- ``dwmflush=<no|windowed|yes>``
- Calls ``DwmFlush`` after swapping buffers on Windows (default: no).
+ ``dwmflush=<no|windowed|yes|auto>``
+ Calls ``DwmFlush`` after swapping buffers on Windows (default: auto).
It also sets ``SwapInterval(0)`` to ignore the OpenGL timing. Values
are: no (disabled), windowed (only in windowed mode), yes (also in
full screen).
+
+ The value ``auto`` will try to determine whether the compositor is
+ active, and calls ``DwmFlush`` only if it seems to be.
+
This may help getting more consistent frame intervals, especially with
high-fps clips - which might also reduce dropped frames. Typically a
value of ``windowed`` should be enough since full screen may bypass the