UE 5.1.1 My Editor and game takes now 30 minutes to start with World partition

I’m testing the transition from UE4 to UE5. I’m using UE5.1.1-release. Our world is about 12km x 10km with some additional vertical levels, but not too much vertically.

I converted my world to world partition, and now when I start the Editor (or when I start my dedicated server) it takes 30 minutes!!
Here is the info in the log:
[2023.02.14-10.19.02:411][ 0]LogWorldPartition: Display: GenerateStreaming took 29:40 min`

I tried to debug it and see where it was looping and seems most of the time is spent in : G:\5.1.1\Engine\Source\Runtime\Navmesh\Private\Detour\DetourNavMesh.cpp

in this loop line 1741:

    while (tile && tile != target)
    {
        prev = tile;
        tile = tile->next;
    }

Reading a bit the code it looks like it’s trying to relate one tile of the navmesh to all the other tiles, with a full scan on all other tiles present. There are 1048576 tiles present in my world, which have already been reduced as the requested was higher:
LogNavigation: Error: Navmesh bounds are too large! Limiting requested tiles count (7144544) to: (1048576) for RecastNavMesh /Game/Maps/MainWorld/Yliakum.Yliakum:PersistentLevel.RecastNavMesh-Default

Anyway with 1048576, this means the code is trying to loop each of the 1 million tiles 1 million times…

It was working fine in UE4, and I think the reason was becuase the tiles were compared level by level instead of the full world at one time. The UE4 startup time was about 2 minutes.

Obviously I cant have 30 minutes of waiting time each time I start the Editor or our server. Any ideas of what may be wrong? Do you have similar issues?

Hi! It seems that you world are loading ALL levels in your world. Are you sure that you configure level streaming properly? It must load only level data that are suitable for streaming in player’s world position.

Hello ! @Talad
When you create your landscape there is a new option first that says World Partition/components. This changes the size of the tiles you created when you build your inital landscape layer. Per default the number is 2 which can makes a lot of tiles to load independantly. I would suggest you re-create your landscape with a higher number of World components like around 8 which gonna greatly reduce the number of streaming components (tiles in this case) created and loaded. Also please note that I currently still not have found a way to start a project with all the regions unloaded even if it says Regions unloaded. If you have similar problem I’d be glad to hear about it. Vertical levels or levels in-levels if sets/stream properly should not cause this issue imo.

-Max :slight_smile: