diff options
author | Dudemanguy <random342@airmail.cc> | 2022-06-19 19:40:20 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-06-22 03:55:49 +0000 |
commit | 24f4582b6f7f57f566418551f9252b8578d2b602 (patch) | |
tree | 17888dcd02b9799903131f51ad67efe2c124c0e5 /options/options.h | |
parent | d9f7dd7212b6306350c8b4c6e0b1959f384fb272 (diff) | |
download | mpv-24f4582b6f7f57f566418551f9252b8578d2b602.tar.bz2 mpv-24f4582b6f7f57f566418551f9252b8578d2b602.tar.xz |
x11: add --x11-present option
With the recent addition of the libxpresent, it should improve frame
timings for most users. However, there were known cases of bad behavior
(Nvidia) which lead to a construction of a whitelist instead of just
enabling this all the time. Since there's no way to predict whatever
combination of hardware/drivers/etc. may work correctly, just give users
an option to switch the usage of xorg's presentation statistics on/off.
The default value, auto, works like before (basically, Mesa drivers and
no Nvidia are allowed), but now one can force it on/off if needed.
Diffstat (limited to 'options/options.h')
-rw-r--r-- | options/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h index 4eb5ef07c7..f38f3b6bfb 100644 --- a/options/options.h +++ b/options/options.h @@ -29,6 +29,7 @@ typedef struct mp_vo_opts { char *appid; int x11_netwm; int x11_bypass_compositor; + int x11_present; int native_keyrepeat; float panscan; |