vo_gpu_next: set max cache size back down to 10 MiB

It turns out that mpv will rewrite the entire cache file on every single
quit. It's not so great since after viewing a ton of files, your cache
can grow to massive sizes and slow down quitting the player to a
noticeable amount. Turn down the max size of both caches to 10 MiB for
now as a workaround until this gets improved later.
This commit is contained in:
Dudemanguy 2023-11-16 18:12:38 -06:00
parent ca45b71edc
commit 4b0f03d455
1 changed files with 2 additions and 2 deletions

View File

@ -1661,11 +1661,11 @@ static int preinit(struct vo *vo)
p->shader_cache = pl_cache_create(pl_cache_params(
.log = p->pllog,
.max_total_size = 50 << 20, // 50 MiB
.max_total_size = 10 << 20, // 10 MiB
));
p->icc_cache = pl_cache_create(pl_cache_params(
.log = p->pllog,
.max_total_size = (1 << 20) * 1024, // 1 GiB
.max_total_size = 10 << 20, // 10 MiB
));
pl_gpu_set_cache(p->gpu, p->shader_cache);