Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Out of Memory Global Illumination Pre-processing

Discussion in 'Universal Render Pipeline' started by frieldhelm446, Jun 25, 2021.

  1. frieldhelm446

    frieldhelm446

    Joined:
    Sep 27, 2020
    Posts:
    28
    When I start the Unity Editor and run my game, everything is fine and Unity Editor uses about 2.5GB of RAM. However, if I make some kind of change, for example change a script forcing a recompile, it will also redo the Global Illumination pre-processing, this leads to more than 10GB of RAM (all my available system memory being used). Any idea where I need to look to fix this?
     
  2. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,793
    Your lightmap resolution is too high
    Higher lightmap resolution needs more RAM
     
    frieldhelm446 likes this.
  3. frieldhelm446

    frieldhelm446

    Joined:
    Sep 27, 2020
    Posts:
    28
    Thank-you!
     
  4. frieldhelm446

    frieldhelm446

    Joined:
    Sep 27, 2020
    Posts:
    28
    Though I wonder how come it seems to accumulate over time?
     
  5. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,793
    Global illumination needs at least 16gb RAM for normal lightmap baking
     
    frieldhelm446 likes this.