Significant slowdown in deleting clips w many clip timelines

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Significant slowdown in deleting clips w many clip timelines

PostFri Sep 15, 2023 3:05 pm

Two identical timelines: 500 x 1 second clips, delete the first one.
(And don't you dare suggest it's a codec issue. It's not!)
In DR 18.5.1: 1,5 second delay
In DR 18.6: 11,5 second delay

Evidence:
18.5.1:

18.6:


The grey clips: https://drive.google.com/file/d/1G2vYo- ... sp=sharing (expands to 1,5 GB, I made 7200 test files)
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostSat Sep 16, 2023 2:09 am

Turns out there's a big difference in terms of the delay sub 200 clips and above 200.
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline
User avatar

Marc Wielage

  • Posts: 10551
  • Joined: Fri Oct 18, 2013 2:46 am
  • Location: Hollywood, USA

Re: Significant slowdown in deleting clips w many clip timel

PostSat Sep 16, 2023 8:31 am

Mads Johansen wrote:Turns out there's a big difference in terms of the delay sub 200 clips and above 200.

That's a very interesting discovery. You wonder what the magic is with 200 clips?

One of the reasons I use a 256GB machine is to load all the timelines at once, and (in general) it does make for faster Resolve sessions, because a good chunk of it is loaded into memory at startup.
marc wielage, csi • VP/color & workflow • chroma | hollywood
Offline

panos_mts

  • Posts: 1082
  • Joined: Mon Oct 21, 2019 3:18 pm
  • Real Name: Panagiotis Vellios

Re: Significant slowdown in deleting clips w many clip timel

PostSat Sep 16, 2023 10:24 am

I tried with 500 clips and I had around 12 seconds delay after ripple delete.
If you remove all linked audio clips, the delete is instant.
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostSat Sep 16, 2023 10:30 am

Marc Wielage wrote:
Mads Johansen wrote:Turns out there's a big difference in terms of the delay sub 200 clips and above 200.

That's a very interesting discovery. You wonder what the magic is with 200 clips?

One of the reasons I use a 256GB machine is to load all the timelines at once, and (in general) it does make for faster Resolve sessions, because a good chunk of it is loaded into memory at startup.

Then you have not understood the problem.

It is an algorithm issue, not a computer specification problem.
The sorting/moving has changed between the two versions, as that's the only difference between the two videos.
I just realized it's even worse than I wrote: The 18.6 is on a 13400F while 18.5 is on a 6800K. Meaning the 18.5 has significantly slower compute power than 18.6.

And with regards to the 200 number? No idea. Probably a <200 clip is algorithm1, >200 is algorithm2 thing, but I don't know
I fear it's an O(n) operation (and single threaded) whereas it should be a O(log(n)) or lower
(Edit: Just realized that not everyone understands Big O Notation:
https://en.wikipedia.org/wiki/Big_O_notation
Example:
https://en.wikipedia.org/wiki/File:Comp ... lexity.svg
Last edited by Mads Johansen on Tue Sep 19, 2023 2:26 am, edited 1 time in total.
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostSat Sep 16, 2023 11:18 am

All this with one audio track in the timeline:

Locking audio track: instant delete
Unlinking video+audio, then Delete selected video clip(with backspace): instant
Unlinking video+audio, then Delete selected audio clip(with backspace): instant
Unlinking video+audio, then Delete (with delete): delay
Delete empty space in timeline (with backspace OR delete): delay
Edit -> Delete gaps: Delay
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

DocJade

  • Posts: 1
  • Joined: Sun Sep 17, 2023 2:30 am
  • Real Name: Jaden Speth

Re: Significant slowdown in deleting clips w many clip timel

PostSun Sep 17, 2023 2:33 am

Same here, i7-8700k, RTX 3060ti
MASSIVE performance regressions on my timelines
Offline

Demetrisag

  • Posts: 1
  • Joined: Sun Sep 17, 2023 12:32 pm
  • Real Name: Demetris Agathocleous

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 8:07 am

same here in windows 11 as well. Was expecting black magic to fix it by now
Offline

Monzter

  • Posts: 22
  • Joined: Thu Jul 13, 2023 1:41 pm
  • Real Name: Dan Conningham

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 1:08 pm

Seems identical to my issue, could you confirm?

viewtopic.php?f=21&t=184584
Offline

Steve Alexander

  • Posts: 4090
  • Joined: Mon Mar 23, 2015 2:15 am

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 4:31 pm

Monzter wrote:Seems identical to my issue, could you confirm?

viewtopic.php?f=21&t=184584

Really? You never mentioned having 200+ clips on your timeline. That could be a clue.
Time Traveller
Resolve Studio 18.6.4 | Fusion Studio 18.6.4 | Win 11 Pro (22H2) | i9-7940x, P4000 (536.96, 8GB VRAM), 64GB RAM, M.2 boot, SSD scratch, RAID10 data | (laptop) 16" MacBook Pro M1 MAX, 32 GPU cores, 64 GB RAM, 2 TB SSD, Sonoma 14.1.2
Offline

Monzter

  • Posts: 22
  • Joined: Thu Jul 13, 2023 1:41 pm
  • Real Name: Dan Conningham

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 4:32 pm

Steve Alexander wrote:
Monzter wrote:Seems identical to my issue, could you confirm?

viewtopic.php?f=21&t=184584

Really? You never mentioned having 200+ clips on your timeline. That could be a clue.

I didn't expect that needed to be said considering the video literally shows this... Image
Offline

Steve Alexander

  • Posts: 4090
  • Joined: Mon Mar 23, 2015 2:15 am

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 4:40 pm

Thanks - I never noticed that in the image but that's a great clue to corroborate Mads' observation!

What would be additionally useful is if you could test with fewer than 200 clips and report if the ripple delete is without delay. Are you willing to test and report on this? That would be very helpful.
Time Traveller
Resolve Studio 18.6.4 | Fusion Studio 18.6.4 | Win 11 Pro (22H2) | i9-7940x, P4000 (536.96, 8GB VRAM), 64GB RAM, M.2 boot, SSD scratch, RAID10 data | (laptop) 16" MacBook Pro M1 MAX, 32 GPU cores, 64 GB RAM, 2 TB SSD, Sonoma 14.1.2
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 5:40 pm

Steve Alexander wrote:Thanks - I never noticed that in the image but that's a great clue to corroborate Mads' observation!

What would be additionally useful is if you could test with fewer than 200 clips and report if the ripple delete is without delay. Are you willing to test and report on this? That would be very helpful.



Same clips as before, I might have overestimated how fast it was. Still in the ~1.5 second range
Attachments
250-DelayTest.dra.7z
Attached the dra
(233.37 KiB) Downloaded 24 times
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

Steve Alexander

  • Posts: 4090
  • Joined: Mon Mar 23, 2015 2:15 am

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 8:33 pm

I was speaking to Dan, actually - he reported this slow-down with over 400 clips - I'm wondering if he could duplicate the timeline and remove all by just fewer than 200 clips and test that it speeds up to (as you observed, 1.5 seconds or better).
Time Traveller
Resolve Studio 18.6.4 | Fusion Studio 18.6.4 | Win 11 Pro (22H2) | i9-7940x, P4000 (536.96, 8GB VRAM), 64GB RAM, M.2 boot, SSD scratch, RAID10 data | (laptop) 16" MacBook Pro M1 MAX, 32 GPU cores, 64 GB RAM, 2 TB SSD, Sonoma 14.1.2
Offline

Hard Is Easy

  • Posts: 74
  • Joined: Fri Sep 24, 2021 5:48 pm
  • Real Name: Benediktas Lipnickas

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 9:21 pm

Might be related to My performance issues as well:
viewtopic.php?f=21&t=188396
Offline

Daniel Leary

  • Posts: 41
  • Joined: Sun Jul 09, 2017 1:12 am

Re: Significant slowdown in deleting clips w many clip timel

PostMon Sep 18, 2023 10:13 pm

Mads Johansen wrote:
Marc Wielage wrote:
Mads Johansen wrote:I just realized it's even worse than I wrote: The 18.6 is on a 13400F while 18.5 is on a 6800K. Meaning the 18.5 has significantly slower compute power than 18.6.

Does this mean the two tests are on two separate systems?
I don't think performance of your project databases have too much to do with your processor speed given that the processor is not a potato. It will usually have more to do with the speed of your storage device, specifically how it handles a database workload.

What database type do you use for your projects? I have noticed snappiness of certain actions like ripple delete on a large timeline or pasting a grade to many clips take a proportional time to the ability of the database the project is working out of. The biggest unresponsive delays being Blackmagic Cloud database(but that is to be expected with latency over the internet) I use a MacMini dedicated to be a local Project Database with the database on an SSD and it performs the same action of pasting grades that I mention above (about 10 seconds on a cloud database) reduces to an unnoticeable delay when working on our local network database. And of course for a Disk Database or running a network database on the same computer as Resolve, it performs as you would expect for the storage medium the database is on minus any background activity eating up performance on your computer.

Separately have you enabled Multiuser Collaboration? I have noticed that with identical conditions with multiuser collaboration enabled for the project, the same actions add a tiny bit but noticeable amount of delay compared to the project with collaboration not enabled.

And if all is the same, maybe some default of how a project interacts with its database might have changed between 18.5.1 and 18.6?
Rocky9.2, Intel X299 Platform, 64GB Memory, RTX3090, DeckLink Studio 4K, Chelsio T580
MacStudio M1 Ultra 64GB
Resolve Version: 18.5 & 18.6
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostTue Sep 19, 2023 2:24 am

Daniel Leary wrote:Does this mean the two tests are on two separate systems?
I don't think performance of your project databases have too much to do with your processor speed given that the processor is not a potato. It will usually have more to do with the speed of your storage device, specifically how it handles a database workload.

What database type do you use for your projects? I have noticed snappiness of certain actions like ripple delete on a large timeline or pasting a grade to many clips take a proportional time to the ability of the database the project is working out of. The biggest unresponsive delays being Blackmagic Cloud database(but that is to be expected with latency over the internet) I use a MacMini dedicated to be a local Project Database with the database on an SSD and it performs the same action of pasting grades that I mention above (about 10 seconds on a cloud database) reduces to an unnoticeable delay when working on our local network database. And of course for a Disk Database or running a network database on the same computer as Resolve, it performs as you would expect for the storage medium the database is on minus any background activity eating up performance on your computer.

Separately have you enabled Multiuser Collaboration? I have noticed that with identical conditions with multiuser collaboration enabled for the project, the same actions add a tiny bit but noticeable amount of delay compared to the project with collaboration not enabled.

And if all is the same, maybe some default of how a project interacts with its database might have changed between 18.5.1 and 18.6?

But if it was a database problem, why would disabling sound create such a drastic effect?
That alone makes me think it's purely a change in the timeline code.
And yes, I have a resolve 18 on the 6800K and 18.6 on 13400F, because of unimportant historical reasons.
And I never mentioned databases :) Because they are not relevant to the issue at hand (IMO)
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline
User avatar

Tony359

  • Posts: 167
  • Joined: Wed Jan 04, 2023 3:50 pm
  • Location: United Kingdom
  • Real Name: Antonio Marcheselli

Re: Significant slowdown in deleting clips w many clip timel

PostTue Sep 19, 2023 3:00 pm

18.6 has been much slower than 18.5 with timeline manipulation.

I reverted to 18.5 (for this and many other issues) and it's back to the speed I was used to.
DaVinci Resolve Studio 18.6.3 build 19
Ryzen 5700X - 32GB RAM - 1.5TB Sata SSD - RTX 3070
Windows 10 22H2
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostThu Sep 21, 2023 4:24 pm

viewtopic.php?f=21&t=188348&p=983245#p983243
Playback -> Timeline proxy resolution -> quarter (even if no timeline proxy exists) lessen the impact, but doesn't solve it entirely.
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostSat Sep 23, 2023 7:08 am

I just realized I didn't tell why I think it's a algorithm problem:
If you delete the first clip in a timeline with many clips to the right, it's slow, but if you delete a clip with few clips to the right, it's fast.
So the bug is in "the moving clips to the left" function
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

Steve Alexander

  • Posts: 4090
  • Joined: Mon Mar 23, 2015 2:15 am

Re: Significant slowdown in deleting clips w many clip timel

PostFri Sep 29, 2023 3:17 pm

I can confirm this bug on my MacBook with 18.6 Studio. When I delete a clip on the edit page, it takes a very long time to delete and then ripple the timeline and if I move to Fairlight I can see that the Fairlight timeline did not ripple. This was with 250 clips on V1/A1 - Simple 1080p H264. On 18.5.1 Studio, delete and ripple of the same project was instantaneous and no desync of audio.

Update - Should mention that I was deleting the first clip on the timeline of 250 clips. The further along (toward the end of the timeline) the shorter the delay (to Mads' point regarding sort algorithm).

Warning - I haven't seen anyone else post this observation but if I put a mark In/Out on a clip on the edit page and then move to Fairlight, it is clear that the In/Out in Fairlight do not align to the supposed clip boundaries there - it's not that the playhead is different in terms of media playback - it looks to me like Fairlight has incorrect clip boundaries marked. Hard to describe but simple to see - probably at the root of why the desync occurs when ripple-deleting a clip. Seems like if I move the boundary of a clip on the Fairlight page the clip boundaries shift to match those on the Edit page (although this doesn't fix the desync with ripple delete on the Edit page).

The fact that not all users see this is a real mystery.

I should state that the way I created this timeline was with Scene Detect on a 3-hour H264 media segment (because it's all I had on had) which means that each clip is really a sub clip of the original media. Not sure if that makes a difference so I'll continue testing. Cheers.

Update - Tried with a normal timeline of many (>200) clips (not from a Scene Detect) - it has the same issue. Bummer.
Last edited by Steve Alexander on Tue Oct 03, 2023 2:16 pm, edited 1 time in total.
Time Traveller
Resolve Studio 18.6.4 | Fusion Studio 18.6.4 | Win 11 Pro (22H2) | i9-7940x, P4000 (536.96, 8GB VRAM), 64GB RAM, M.2 boot, SSD scratch, RAID10 data | (laptop) 16" MacBook Pro M1 MAX, 32 GPU cores, 64 GB RAM, 2 TB SSD, Sonoma 14.1.2
Offline

BrisvegasUser

  • Posts: 7
  • Joined: Sun Apr 10, 2022 8:15 pm
  • Real Name: Magnus Eriksson

Re: Significant slowdown in deleting clips w many clip timel

PostMon Oct 02, 2023 4:07 am

I can confirm that a ripple delete on Edit page does not flow to Fairlight page. It leaves a gap in the fairlight page clips with all subsequent audio clips having a red bar to the bottom right. Audio is then out of synch for all subsequent clips.

This is preventing me from proceeding with my project, so I will revert version now.
Offline

smunaut

  • Posts: 492
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: Significant slowdown in deleting clips w many clip timel

PostWed Oct 04, 2023 10:42 am

Just tested on Linux using the DRA above and exact same thing with the delay.
And also fairlight vs edit page discrepancy.

Switching to another timeline then reloading the timeline with all the clips seems to also fix the issue. (fairlight shows the right thing)
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline
User avatar

edzusv

  • Posts: 16
  • Joined: Fri Feb 28, 2020 1:37 pm
  • Location: Riga, Latvia
  • Real Name: Edzus Viksna

Re: Significant slowdown in deleting clips w many clip timel

PostThu Oct 05, 2023 8:46 am

smunaut wrote:Just tested on Linux using the DRA above and exact same thing with the delay.
And also fairlight vs edit page discrepancy.

Switching to another timeline then reloading the timeline with all the clips seems to also fix the issue. (fairlight shows the right thing)


This is a lifesaver! Thank you! I have same issue on Mac Studio. It started on all computers in our studio yesterday. We have been using Resolve 18.6 since it was released (for about a week) and since yesterday we have issues when performing ripple delete action on longer timelines. The solution we will stick with for now - switching between timelines. Thank god, we do not have to restart Resolve every time this happens.

But what I noticed after switching timelines, undo does not work with a shortcut. It only works when I choose the action under History section on top menu system.
My system:
Apple M1 MAX Studio
Editor Keyboard
Speed Editor for my Asus TUF laptop
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13724
  • Joined: Wed Aug 22, 2012 7:08 am

Re: Significant slowdown in deleting clips w many clip timel

PostFri Oct 06, 2023 2:58 am

Please see if 18.6.1 resolves the issue you have with 18.6.
DaVinci Resolve Product Manager
Offline

Mads Johansen

  • Posts: 838
  • Joined: Mon Dec 19, 2016 10:51 am

Re: Significant slowdown in deleting clips w many clip timel

PostFri Oct 06, 2023 5:18 am

Peter Chamberlain wrote:Please see if 18.6.1 resolves the issue you have with 18.6.

It works as in 18.6.1

Excellent work to everyone involved!
Please bring my praise and eternal admiration to the dev team.
Davinci Resolve Studio 18.6.4 Build 6, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline
User avatar

edzusv

  • Posts: 16
  • Joined: Fri Feb 28, 2020 1:37 pm
  • Location: Riga, Latvia
  • Real Name: Edzus Viksna

Re: Significant slowdown in deleting clips w many clip timel

PostSun Oct 08, 2023 12:26 pm

Peter Chamberlain wrote:Please see if 18.6.1 resolves the issue you have with 18.6.

That was bloody quick, Peter! Thank you and all your team behind Resolve. It really felt like an overnight fix. I can confirm that this issue is no longer present.
My system:
Apple M1 MAX Studio
Editor Keyboard
Speed Editor for my Asus TUF laptop

Return to DaVinci Resolve

Who is online

Users browsing this forum: asdf2200, Fassbrause, Google [Bot], Graham Kay, kfriis, oliwend, pperquin, Sir Winston and 278 guests