Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/seqprefetch.c
| Show First 20 Lines • Show All 530 Lines • ▼ Show 20 Lines | void BKE_sequencer_prefetch_start(const SeqRenderData *context, float cfra, float cost) | ||||
| if (!context->is_prefetch_render && !context->is_proxy_render) { | if (!context->is_prefetch_render && !context->is_proxy_render) { | ||||
| bool playing = seq_prefetch_is_playing(context->bmain); | bool playing = seq_prefetch_is_playing(context->bmain); | ||||
| bool scrubbing = seq_prefetch_is_scrubbing(context->bmain); | bool scrubbing = seq_prefetch_is_scrubbing(context->bmain); | ||||
| bool running = BKE_sequencer_prefetch_job_is_running(scene); | bool running = BKE_sequencer_prefetch_job_is_running(scene); | ||||
| seq_prefetch_resume(scene); | seq_prefetch_resume(scene); | ||||
| /* conditions to start: | /* conditions to start: | ||||
| * prefetch enabled, prefetch not running, not scrubbing, | * prefetch enabled, prefetch not running, not scrubbing, | ||||
| * not playing and rendering-expensive footage, cache storage enabled, has strips to render, | * not playing and rendering-expensive footage, cache storage enabled, has strips to render, | ||||
| * not rendering. | * not rendering, not doing modal transform - important, see D7820. | ||||
| */ | */ | ||||
| if ((ed->cache_flag & SEQ_CACHE_PREFETCH_ENABLE) && !running && !scrubbing && | if ((ed->cache_flag & SEQ_CACHE_PREFETCH_ENABLE) && !running && !scrubbing && | ||||
| !(playing && cost > 0.9) && ed->cache_flag & SEQ_CACHE_ALL_TYPES && has_strips && | !(playing && cost > 0.9) && ed->cache_flag & SEQ_CACHE_ALL_TYPES && has_strips && | ||||
| !G.is_rendering) { | !G.is_rendering && !G.moving) { | ||||
| seq_prefetch_start(context, cfra); | seq_prefetch_start(context, cfra); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| bool BKE_sequencer_prefetch_need_redraw(Main *bmain, Scene *scene) | bool BKE_sequencer_prefetch_need_redraw(Main *bmain, Scene *scene) | ||||
| { | { | ||||
| Show All 16 Lines | |||||