Blender Git Loki

Git Commits -> Revision 348d2fa

Revision 348d2fa by Richard Antalik (master)
March 18, 2020, 23:07 (GMT)
VSE: Disk cache

This patch implements dumping images from cache to HDD.
The main goal of this system is to provide a means to achieve consistent playback speed mainly for strips that are not possible to preview in real time.

How to use:
Disk cache has own settings in user preferences for path to storage, size limit and compression level.
To use disk cache, you need to check `Use Disk Cache` box, set `Disk Cache Directory`, `Disk Cache Limit` and save or open existing .blend file.
By default sequencer output will be cached only. Manual setting is possible in cache panel.

Uses:
- Replacement or alternative for proxies. Disk cache will work with any strip type, supports float images as well.
- Storage for strip thumbnails.
- Less RAM needs to be allocated for preview cache

How it works:
Disk cache is extension of RAM cache. Every image, that is stored or deleted in RAM will be stored or deleted on HDD as well. Images can be compressed to save space and for use on slower drives. Compressed images are slower to write and read though.
Images are stored in bulk of 100 rendered frames per one file. This is to overcome slow file access time for large amount of files. Drawback is, that if one frame needs to be redrawn, all 100 frames are deleted.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D5524

Commit Details:

Full Hash: 348d2fa09e0c01d62372f5999b62d06ac3b810f9
Parent Commit: c8b4b4c
Lines Changed: +948, -61

11 Modified Paths:

/release/datafiles/userdef/userdef_default.c (+5, -0) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+9, -0) (Diff)
/source/blender/blenkernel/BKE_sequencer.h (+6, -3) (Diff)
/source/blender/blenkernel/intern/seqcache.c (+731, -41) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+18, -14) (Diff)
/source/blender/blenlib/BLI_fileops.h (+7, -1) (Diff)
/source/blender/blenlib/intern/fileops.c (+95, -0) (Diff)
/source/blender/makesdna/DNA_sequence_types.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+13, -1) (Diff)
/source/blender/makesrna/intern/rna_sequencer.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+59, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021