1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-27 10:50:53 +00:00
mpv/DOCS/man
Kacper Michajłow 69891c4070 vo_gpu_next: save cache to separate files
Save the cache to separate files to avoid loading/saving a huge combined
libplacebo.cache. This approach allows the saving of only new cache
objects and avoids resaving the entire cache, especially even if only a
tiny change was made.

This commit improves the cold start time of mpv and avoids saving data
when it's not necessary.

Number of changes were made:
- each cached object is saved in its own file
- cache files are prefixed with the name of cached object
- cache directory is cleaned on each uninit
    - the least recently used cache files are removed if cumulative cache
      size is above limit
    - files used in the recent 24 hours are not removed to allow changes
      to mpv.conf without worrying about the cache being removed during
      experimentation
- shader cache size limit is set to 128 MiB
- icc cache size limit is set to 1.5 GiB
- cache objects are loaded/saved as needed

This commit eliminates the runtime performance penalty associated with
the size cache. While we continue to maintain the cache limit to prevent
retaining stale objects, mpv now only loads a small subset of files that
are currently required for playback, instead of loading all files.
2024-01-31 15:38:21 +00:00
..
af.rst m_option: drop support for -del for list options 2023-10-30 16:47:44 +00:00
ao.rst DOCS/ao: change wrong note on which driver is preferred 2024-01-01 22:41:38 +01:00
changes.rst
console.rst console.lua: implement case-insensitive completion 2023-12-15 15:44:48 +00:00
encode.rst options: remove a few options marked with .deprecation_message 2023-09-21 16:06:29 +00:00
input.rst command: export current-gpu-context property 2024-01-20 17:12:07 +00:00
ipc.rst
javascript.rst scripting: add mp.input 2024-01-13 02:53:08 +00:00
libmpv.rst
lua.rst scripting: don't observe properties with type nil 2024-01-20 16:09:34 +00:00
mpv.rst DOCS/*: remove mentions of Libav 2024-01-20 16:10:20 +00:00
options.rst vo_gpu_next: save cache to separate files 2024-01-31 15:38:21 +00:00
osc.rst osc: add osc-windowcontrols_title option 2024-01-22 14:41:36 +00:00
stats.rst javascript: use --js-memory-report option instead of MPV_LEAK_REPORT 2023-10-26 16:49:56 +00:00
vf.rst m_option: drop support for -del for list options 2023-10-30 16:47:44 +00:00
vo.rst drm: remove selecting the card number with --drm-connector 2023-09-21 16:06:29 +00:00