[Bf-blender-cvs] [b534806ecb9] master: VSE: Reduce memory footprint when using thumbnails
Richard Antalik
noreply at git.blender.org
Wed Oct 6 05:08:23 CEST 2021
Commit: b534806ecb9847c6929d5ef107a2cb729fb636c9
Author: Richard Antalik
Date: Wed Oct 6 04:43:26 2021 +0200
Branches: master
https://developer.blender.org/rBb534806ecb9847c6929d5ef107a2cb729fb636c9
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.
===================================================================
M source/blender/editors/space_sequencer/sequencer_thumbnails.c
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list