Description
  • Every time AWorldDataLayers::CreateDataLayer is called,  UDataLayerManager::ResolveActorDescContainersDataLayers() gets called and iterates on all actordescs of the world.
  • When creating multiple data layer instances back to back, this call will slow down the process. 
  • Either add a way to batch create multiple data layer instances and call ResolveActorDescContainersDataLayers once OR add a new API that scopes the creation/destruction of data layer instances and suspends temporarily the call to ResolveActorDescContainersDataLayers. When exiting the scope, call ResolveActorDescContainersDataLayers if any data layer instances were created/destroyed.
Steps to Reproduce
  • Create multiple Data Layer Instances using AWorldDataLayers::CreateDataLayer
  • Notice that each call will trigger a call to UDataLayerManager::ResolveActorDescContainersDataLayers() which iterates on all actor descs of the world.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-233789 in the post.

0
Login to Vote

Unresolved
ComponentUE - World Creation - Worldbuilding Tools
Affects Versions5.5
Target Fix5.6
CreatedDec 10, 2024
UpdatedJan 24, 2025
View Jira Issue