Extreme Sequencer loading time

Hi !

We are seeing extreme sequencer opening time in our feature film project, in Unreal 5.6.1.

When opening a Master Level Sequence that contains a large number of shots (around 100–150 shots) referencing multiple and shared underlying Subsequence asset, the editor can freeze for over 10 minutes.

We did a number of test benchmarks to try to understand what is costing so much when opening our Master Sequence.

A full hierarchy of sequence and subsequences, with multiple depths but totally empty of bindings/tracks, opens blazing fast, so the cost is induced by the bindings and tracks, as would appear logical.

Opening cost increases linearly with the number of bindings (actors/components, but not property tracks it seems), which can make sense too.

But it appears that even if all bindings/tracks are located in a single subsequence that is shared by (meaning referenced by) all shots, then the cost increases linearly with the number of shots. Which is less logical, since bindings/tracks in this subsequence are unique and do not change from one shot to the other.

Are those not treated once and reused afterward ?

Another weird behavior we observed is that if we have the master sequence open on a shot’s subsequence that is shared everywhere, and we for example add new bindings or paste previously copied bindings, it does not seem to incur any costs, and we can freely go to other shots without a long wait/freeze.

So, what difference is there ?

To better understand what was happening, we used Unreal Insights.

The result is that all the time is spent on millions (!) of calls to functions called LoadObject and StaticLoadObjectInternal.

What do they really do ? Fast like they are (500ns), they probably are not really loading objects.

Attached is a repro project with different sequence setups.

Here are some statistics from our benchmarks:

Different shot count:

  • SQ0010: 10 shots -> 18sec to load
  • SQ0020: 50 shots -> 82sec to load
  • SQ0030: 100 shots -> 166sec to load
  • SQ0040: 200 shots -> 345sec to load

On SQ0020, we also tested this:

  • Actor bindings only: 30sec to load
  • Actor and component bindings only: 82sec (so property tracks do not weight at all, since removing them doesn’t reduce the load time).
  • We also tested to open the master sequence without the associated level opened: 26sec to load. This is faster (than 82sec with level opened), but this is still pretty slow.

Are you already aware of such low performances on rather big sequences like that ?

Is there something, some setting or some code change we could do to improve this a lot on our side ?

Thanks !

Maxime

Hey there,

Apologies for the delay. In 5.8 this is either fixed or greatly improved, so we recommend updating to that version of the engine. That said, I’m looking to identify whether there are specific changes you would want to consider. Do you build your engine?

Dustin

Alright, I’ve tracked down likely CLs. I say likely because there isn’t a silver bullet, and the changes around these things are extensive/complex. There may be additional changes that you need. Again, this is addressed in 5.8, and the best thing you can do is update.

https://github.com/EpicGames/UnrealEngine/commit/91ce4fbfe77a5c27f3d95123eb894231944dfb24

https://github.com/EpicGames/UnrealEngine/commit/ff1b8fdc167fcc57c3c8e054cb5e4f8688aa8e4a

https://github.com/EpicGames/UnrealEngine/commit/baf2c21e954f14fe86cfd69803a3cec5706dd06b

https://github.com/EpicGames/UnrealEngine/commit/c8f1764bc2451f458dac42723d6af2f8dcb35c03

https://github.com/EpicGames/UnrealEngine/commit/63c4e8c34ed2aef265b211e446949a5b0ce6df8d

https://github.com/EpicGames/UnrealEngine/commit/ba3ac4dabfcd1734883f6f09195b0552244d064b

https://github.com/EpicGames/UnrealEngine/commit/5747902a2a18d1ea1f48ed8c70741d388ddb84c1

Dustin

Hello !

We implemented as best as we could, in 5.6, the changes you gave us but it made no differences unfortunately.

But we finally found out what was the issue !

In fact, it is the plugin SequencerNavigator (and LevelSequenceNavigatorBridge) that makes level sequences really slow to open, even though we don’t actually use it.

So we just disabled them for now.

So you say in 5.8 it’s fast ?

Those plugins have been optimized ?

Thanks !

Maxime

Hey there,

I’ve looked into it; Sequence Navigator hasn’t really changed. There have been a few small refactors, but nothing that would improve overall speed. I think we’re at a point where the repros don’t really show the scale of work your team is doing. Maybe you can send a UTrace from a worst-case scenario you are having with the sequence navigator on. Then we might be able to identify the issue. Especially because the changes I’ve sent over did nothing.

Dustin

Hey there,

Just checking in to see if you have an update on how that went. Are you still seeing extreme load times? If so, do you have a more recent Insights trace?

Dustin

Hi !

Great news if this is better in 5.8 !

Unfortunately, we cannot upgrade to 5.8, this would be too much work and we are short of time.

Yes, we build the engine so if you can point us to some changes on github that we can integrate that would be awesome !!

Thanks !

Maxime

Hello !

Thanks a lot for that ! Sorry for the late answer, was in vacation.

We’ll a take a look at those and hope to get better performances :slight_smile:

Maxime

Just writing a message so that the thread won’t be closed yet, as I just received a message it would be closed soon.

Hello !

Yes, attached is the repro project, sorry I might have missed it when creating the ticket as I don’t see it ^^’

It contains 4 sequences with more and more shots, that reproduce the extreme loading time.

I also added 2 Insight traces, one with the “LevelSequenceNavigatorBridge” active and one without, the trace is explicit in the extreme loading time.

I noticed that only the LevelSequenceNavigatorBridge is in cause of this, not the base SequenceNavigator, sorry if it misguided your research :frowning:

Thanks !

Maxime

Second upload… Hopefully we won’t have this issue anymore from october 9 !

SequencerBenchmark.zip(360 MB)

Hello,

I don’t have any update no, the extreme loading time were resolved by deactivating the LevelSequenceNavigatorBridge plugin like I explained in my latest messages. So all is good in our end.

Have you had a chance to try the repro project I sent ?

I don’t know if things are better in 5.8.

Thanks !

Maxime