Introduction
Iteration time on large partitioned worlds is a known pain point. Dynamic Loading Range Scaling reduces the time it takes for Play In Editor (PIE) to reach an interactive state on large World Partition maps, so you can iterate faster.
When enabled, World Partition starts PIE with each streaming source's loading range reduced to a configurable percentage (0% to 100%) of its normal loading area, or loading volume for 3D streaming sources. Because the value is a percentage of area rather than distance, 25% loads cells out to half the usual distance, and 1% to a tenth. Fewer cells need to stream in before you can interact with the map, which reduces the time from when you click Play to when you can actually play.
Once the initial blocking load finishes and PIE is playable, the loading range ramps back up to its full value over a configurable duration, after an optional delay. The ramp is linear in loaded area, so the loading distance grows quickly at first and then more slowly. The delay and duration run on game time, so pausing PIE or changing time dilation stretches them. There is a trade-off: a lower initial value means a faster start, but more visible pop-in as cells stream in during the ramp. The feature is editor-only and disabled by default. It applies to PIE clients and to listen or dedicated servers that run inside the editor process (Run Under One Process). It does not affect servers launched as separate processes, -game launches, or cooked and packaged builds.
Enabling Dynamic Loading Range Scaling
You must first enable dynamic loading range scaling in any World Partition map where you want to use the feature. To enable the feature, proceed as described below:
Open a World Partition map in the editor.
In the menu, select Window > World Settings.
In the World Partition Setup category, expand Advanced.
Expand Dynamic Loading Range Scaling, then click the Enabled checkbox.
Change the default settings to appropriate values for your project. See the table below for information on the specific settings.
Save your map.
| Setting | Description |
|---|---|
Initial Dynamic Loading Range Scaling | Sets the initial loading range as a percentage of the map's normal loading area, not of the loading range distance. On a 2D runtime grid, 25% loads about half the usual distance, 10% about a third, and 1% about a tenth. The default is 100%, which is equivalent to disabling the feature. Avoid 0% if your floor or terrain is spatially loaded. No spatially loaded cells stream in until the ramp begins, so your pawn has nothing to stand on. Values outside 0% to 100% are clamped to that range. |
Dynamic Loading Range Scaling Delay | Sets how long to wait before the loading range starts scaling up. The delay begins once the initial blocking load finishes and PIE is playable, so time spent blocking on level streaming does not count against it. The default is 0 seconds. Many systems compete for resources during PIE initialization, which can lead to hitches. The delay smooths out the initial performance by giving time for the other PIE startup systems to finish before starting the loading range scaling. |
Dynamic Loading Range Scaling Duration | Sets how long the loading range takes to ramp up to its full value after the delay ends. A duration of 0 seconds skips the ramp and loads the full range as soon as the delay ends. The default is 10 seconds. |
Using Dynamic Loading Range Scaling
When using dynamic loading range scaling, the goal is to reach interactivity as quickly as possible in PIE. Choose settings appropriate for the size of your map. In general, this means the larger the map, the smaller the initial scaling percentage, and the longer the delay and the scaling duration.
For example, when working with the City Sample PCG map, we found the following values effective:
Initial Dynamic Loading Range Scaling: 1% (about one tenth of the normal loading range distance)
Dynamic Loading Range Scaling Delay: 5 seconds
Dynamic Loading Range Scaling Duration: 10 seconds
You might need to try several different combinations of settings to find what works best.
Streaming performance measurements, including Block on Slow Streaming, ignore the reduced range during the ramp, so results captured while the feature is active are not representative of a packaged build. Disable the feature, or disable it locally as described below, before you profile streaming.
Locally Disabling Dynamic Loading Range Scaling
If you need to turn off dynamic loading range scaling without changing the map for the rest of your team, you can disable it locally. Under World Settings > World Partition Setup > Advanced, enable Locally Disable Dynamic Loading Range Scaling. This setting is stored in your local user settings for the map, so it does not check out or modify the map, and it works on any saved map, shared or not. It takes effect immediately, including during a running PIE session.
This setting is saved per map, so it has no effect on a new map until you save the map for the first time.