@iss sound good, I'll move the initialisation to a background thread.
It does make sense to have different segments be initialised in the background
It does load waveforms a bit faster, but it seems, that it loads whole strip anyway
Are the strips completely visible when you enable waveform drawing? If they are, the code loads all of…
I was able to replicate the problem on my machine by putting a really long sleep in the preview_startjob
function in sequencer_preview
:
/** \file
* \ingroup spseq
*/
+#include…
I think the issue with the double locking that @iss reported is here. waveform_job_start_all_needed_segements
is called inside the spin lock lock.
hey @iss , can you send me the repro steps so I can figure out what is wrong with the patch? 🤔
BKE_lib_override.h
header to be fully C++.
@iss I just noticed I don't actually have commit rights. Can you merge this PR ?
Oh, I finally understood what you meant there. I've made the code change to ensure the PreviewJob is locked inside the sequencer_preview_add_sound()
function until the new sound is added.
I…