This will need more investigation, but at least in PIE (to check if we can do the same in editor), when a level is streamed-in, we should only add the new missing folders for this level and when streaming out, we should remove those folders, no need to do a full rebuild.

Note : I remember something particular in this code about empty folders not being cleaned-up intentionally.

Steps to Reproduce

Streaming-in/out can cause hitches, see licensee description:

"We were seeing hitches inside FActorFolders::OnLevelActorListChanged, we integrated CL 25130527 Optimization to speed up rebuilding level actor list in editor, which removes the multiple occurrences during one frame, but we still get this 20ms hitch in PIE when adding or removing a level, is this needed for PIE? Wondering if this is something the editor needs, but it is not really needed while doing PIE.

I know for some other stuff events you added a if (!InWorld.IsGameWorld()), on the same file. Wondering if this would make sense too or if there is any other thing we could do to avoid hitching 20ms while on PIE."

Have Comments or More Details?

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

Login to Vote

ComponentUE - World Creation - Worldbuilding Tools
Affects Versions5.4
Target Fix5.4
Fix Commit27991553
Main Commit27991553
CreatedAug 18, 2023
ResolvedSep 19, 2023
UpdatedOct 20, 2023