From b055cdd1a26fba9125f62be92f0250340402a9bd Mon Sep 17 00:00:00 2001 From: pax Date: Sat, 11 Apr 2026 23:01:38 -0500 Subject: [PATCH] _mpv_options: reduce default demuxer buffer from 150MiB to 50MiB 150MiB is excessive for local cached file playback. Network streaming URLs get the 150MiB cap via a per-file override in play_file() so the fast-path buffering is unaffected. behavior change: mpv allocates less demuxer memory for local files. --- booru_viewer/gui/media/_mpv_options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booru_viewer/gui/media/_mpv_options.py b/booru_viewer/gui/media/_mpv_options.py index 274e0e2..65a1a23 100644 --- a/booru_viewer/gui/media/_mpv_options.py +++ b/booru_viewer/gui/media/_mpv_options.py @@ -78,7 +78,7 @@ def build_mpv_kwargs(is_windows: bool) -> dict[str, object]: "vd_lavc_skiploopfilter": "nonkey", "cache": "yes", "cache_pause": "no", - "demuxer_max_bytes": "150MiB", + "demuxer_max_bytes": "50MiB", "demuxer_readahead_secs": "20", "network_timeout": "10", "ytdl": "no",