diff options
author | Dudemanguy <random342@airmail.cc> | 2023-05-02 19:42:23 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-05-09 20:37:17 +0000 |
commit | 4502522a7aee093c923e79a65e4684ea2634af30 (patch) | |
tree | d7855be2c4cfb6a16edc784da0e6f3dad29ee667 /video/out/gpu/video.h | |
parent | 7c4c9bc86f55f4d1224814fbeafdee8f1c3c3108 (diff) | |
download | mpv-4502522a7aee093c923e79a65e4684ea2634af30.tar.bz2 mpv-4502522a7aee093c923e79a65e4684ea2634af30.tar.xz |
player: use XDG_CACHE_HOME by default
This adds cache as a possible path for mpv to internally pick
(~/.cache/mpv for non-darwin unix-like systems, the usual config
directory for everyone else). For gpu shader cache and icc cache,
controlling whether or not to write such files is done with the new
--gpu-shader-cache and --icc-cache options respectively. Additionally,
--cache-on-disk no longer requires explicitly setting the --cache-dir
option. The old options, --cache-dir, --gpu-shader-cache-dir, and
--icc-cache-dir simply set an override for the directory to save cache
files. If unset, then the cache is saved in XDG_CACHE_HOME.
Diffstat (limited to 'video/out/gpu/video.h')
-rw-r--r-- | video/out/gpu/video.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu/video.h b/video/out/gpu/video.h index 0ef4618790..5a974f9ee0 100644 --- a/video/out/gpu/video.h +++ b/video/out/gpu/video.h @@ -171,6 +171,7 @@ struct gl_video_opts { float unsharp; int tex_pad_x, tex_pad_y; struct mp_icc_opts *icc_opts; + bool shader_cache; int early_flush; char *shader_cache_dir; char *hwdec_interop; |