Comprehensive World Streamer 2 Setup for Unity

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:

  1. 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.
  2. Select a Scene Collection Manager:
    • Click on a Scene Collection Manager to configure its parameters.
  3. Set Priority Levels:
    • Definition: Priority determines the order in which streaming layers are loaded. Lower numbers load first.
    • Example Priority Settings:
      • TerrainAndTrees: Priority 0 (highest priority)
      • LowPolyTerrainMeshes: Priority 0
      • HugeObjects: Priority 1
      • MediumOutdoorObjects: Priority 2
      • SmallOutdoorObjects: Priority 3
    • Configuration:
      • In the Inspector, locate the Priority field.
      • Enter the desired priority value based on the importance of the streaming layer.
  4. 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 1 to prevent performance spikes.
      • Low-Cost Layers (e.g., Small Objects): Can have higher values (e.g., 2-4) to expedite loading.
    • Configuration:
      • In the Inspector, find the Max Parallel Scene Loading field.
      • Input the appropriate number based on the layer’s loading cost.
  5. 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.
  6. 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.