Objective:
Set priority levels and parallel loading capacities for each Scene Collection Manager to optimize streaming behavior.
Why This Step is Important:
Properly configuring these parameters ensures that critical objects (like terrains) load first, and less important objects load subsequently without overwhelming the system.
Detailed Instructions:
- Locate Scene Collection Managers:
- In the Hierarchy, find all Scene Collection Manager objects created in Step 13.
- They are typically named based on their streaming layers, e.g.,
TerrainAndTrees_Manager.
- Select a Scene Collection Manager:
- Click on a Scene Collection Manager to configure its parameters.
- Set Priority Levels:
- Definition: Priority determines the order in which streaming layers are loaded. Lower numbers load first.
- Example Priority Settings:
TerrainAndTrees: Priority0(highest priority)LowPolyTerrainMeshes: Priority0HugeObjects: Priority1MediumOutdoorObjects: Priority2SmallOutdoorObjects: Priority3
- Configuration:
- In the Inspector, locate the Priority field.
- Enter the desired priority value based on the importance of the streaming layer.
- Configure Max Parallel Scene Loading:
- Definition: Determines how many scenes from a streaming layer can load simultaneously.
- Guidelines:
- High-Cost Layers (e.g., Terrains): Set to
1to prevent performance spikes. - Low-Cost Layers (e.g., Small Objects): Can have higher values (e.g.,
2-4) to expedite loading.
- High-Cost Layers (e.g., Terrains): Set to
- Configuration:
- In the Inspector, find the Max Parallel Scene Loading field.
- Input the appropriate number based on the layer’s loading cost.
- Repeat for All Managers:
- Perform the above configurations for each Scene Collection Manager, adjusting priorities and parallel loading based on the layer’s significance and resource demands.
- Example Configuration:
| Scene Collection Manager | Priority | Max Parallel Scene Loading |
|---|---|---|
| TerrainAndTrees_Manager | 0 | 1 |
| LowPolyTerrainMeshes_Manager | 0 | 1 |
| HugeObjects_Manager | 1 | 2 |
| MediumOutdoorObjects_Manager | 2 | 3 |
| SmallOutdoorObjects_Manager | 3 | 4 |
Notes:
- Priority Impact: Higher priority layers (lower numbers) load before lower priority ones, ensuring critical elements are always present.
- Loading Balance: Adjust Max Parallel Scene Loading to balance between faster loading times and system resource constraints.
Tips:
- Performance Testing: After configuration, test your game to observe loading behaviors and adjust parameters as needed.
- Resource Monitoring: Use Unity’s Profiler to monitor the impact of parallel loading on performance.
