diff options
author | Richard Antalik <richardantalik@gmail.com> | 2019-09-14 03:21:54 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-09-14 03:24:42 +0300 |
commit | ab3a9dc1ed28d44bd71f5e255da74ef4d6f1fdbf (patch) | |
tree | 957e85faac06300afcb8bb76087c0683f0a45496 /source/blender/makesdna/DNA_sequence_types.h | |
parent | 0547a7753643f45861306542857d97215ecb2c4f (diff) |
VSE: prefetching
When enabled prefetching(preview panel>view settings), a pernament running job
is created, that will render frames in the background until the cache is full.
If the cache is not filled fast enough, prefetch job suspends itself
at the last moment and will wait until it has chance to "catch up".
Effectively this will decouple rendering to separate thread, so rendering
itself is a bit faster.
Cache recycling behavior will be changed to "free furthest frame to the left
of playhead if possible, otherwise rightmost frame".
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5386
Diffstat (limited to 'source/blender/makesdna/DNA_sequence_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_sequence_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index 087d30ce312..8d9dc77c49b 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -270,6 +270,8 @@ typedef struct Editing { /* Cache control */ float recycle_max_cost; int cache_flag; + + struct PrefetchJob *prefetch_job; } Editing; /* ************* Effect Variable Structs ********* */ @@ -674,6 +676,8 @@ enum { SEQ_CACHE_VIEW_PREPROCESSED = (1 << 7), SEQ_CACHE_VIEW_COMPOSITE = (1 << 8), SEQ_CACHE_VIEW_FINAL_OUT = (1 << 9), + + SEQ_CACHE_PREFETCH_ENABLE = (1 << 10), }; #endif /* __DNA_SEQUENCE_TYPES_H__ */ |