diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-10-06 05:43:26 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-10-06 06:07:51 +0300 |
commit | b534806ecb9847c6929d5ef107a2cb729fb636c9 (patch) | |
tree | d3302e3e6e7e648252f15b14cab497095e0db6fa /source | |
parent | 0d68d7baa3c55971ce6640738716690ff819a052 (diff) |
VSE: Reduce memory footprint when using thumbnails
Free strip `anim` data immediately after rendering. This doesn't affect
rendering performance, because each new loop would have to seek to start
of strip. Also strips are now freed anyway, but after rendering loop
ends.
With SF edit file, thumbnail rendering used around 60GB of memory.
Now it uses few hundreds MB (depends on movie file resolution, codec,
etc.)
Freeing of strips caused UI to be unresponsive for brief period. This
issue is not removed, but is more spread out so it is less noticable.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_thumbnails.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_thumbnails.c b/source/blender/editors/space_sequencer/sequencer_thumbnails.c index f67b40b9674..0ea952d0999 100644 --- a/source/blender/editors/space_sequencer/sequencer_thumbnails.c +++ b/source/blender/editors/space_sequencer/sequencer_thumbnails.c @@ -36,6 +36,7 @@ #include "BIF_glutil.h" +#include "SEQ_relations.h" #include "SEQ_render.h" #include "SEQ_sequencer.h" @@ -176,6 +177,7 @@ static void thumbnail_start_job(void *data, SEQ_render_thumbnails( &tj->context, val->seq_dupli, seq_orig, start_frame, frame_step, tj->view_area, stop); SEQ_render_thumbnails_base_set(&tj->context, val->seq_dupli, seq_orig, tj->view_area, stop); + SEQ_relations_sequence_free_anim(val->seq_dupli); } BLI_ghashIterator_step(&gh_iter); } |