From 17c2039250955065cc1752ff8bb2b21707da6b32 Mon Sep 17 00:00:00 2001 From: dragonflylee Date: Fri, 6 Dec 2024 00:56:35 +0800 Subject: [PATCH] Avoid mpv create shader cache on disk --- wiliwili/source/view/mpv_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wiliwili/source/view/mpv_core.cpp b/wiliwili/source/view/mpv_core.cpp index 9994e57c..58ff6bbf 100644 --- a/wiliwili/source/view/mpv_core.cpp +++ b/wiliwili/source/view/mpv_core.cpp @@ -293,6 +293,7 @@ void MPVCore::init() { mpvSetOptionString(mpv, "config", "yes"); mpvSetOptionString(mpv, "config-dir", ProgramConfig::instance().getConfigDir().c_str()); mpvSetOptionString(mpv, "ytdl", "no"); + mpvSetOptionString(mpv, "cache-on-disk", "no"); mpvSetOptionString(mpv, "audio-channels", "stereo"); mpvSetOptionString(mpv, "idle", "yes"); mpvSetOptionString(mpv, "loop-file", "no");