Search Issue Tracker

By Design

Votes

0

Found in

2021.3.31f1

2022.3.10f1

2023.1.16f1

2023.2.0b12

2023.3.0a8

Issue ID

UUM-53170

Regression

No

Baking time of several days when Generating lighting on specific project

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/ToyMaster.unity” Scene
3. Open the Lighting window (Window > Rendering > Lighting)
4. Click “Generate Lighting”

Expected result: Lighting takes under an hour to generate
Actual result: Lighting has baking time of several days

Reproducible with: 2021.3.31f1, 2022.3.10f1, 2023.1.16f1, 2023.2.0b12, 2023.3.0a8

Reproducible on: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested

  1. Resolution Note:

    Hello Julian,
    I looked at the crash log and noticed a crash in the Radeon lightmap denoiser when your system is running out of memory. Please consider switching to the OpenImage denoiser, it doesn't need GPU memory and is generally providing better quality lightmap denoising. We have removed the Radeon denoiser in the latest Unity release, so you should migrate away from it anyway if you plan on upgrading.
    The second thing I noticed is that you are using both Realtime Global Illumination and baked Global Illumination at the same time. All the light sources in your scene are Baked so the Realtime Global Illumination precompute is unnecessary unless you plan on changing lights at runtime. Please consider using only baked Global Illumination, because the real-time GI precompute is what is making your bake take so long.
    If you do need real-time GI please have a look at this tutorial on how to optimize your scene for Precomputed Realtime GI: https://learn.unity.com/project/lighting-optimization-with-precomputed-realtime-gi.
    For reference, on my 64 core Threadripper the real-time GI precompute took roughly 40 minutes. A bake using only Baked GI took 12 minutes using an AMD 6800XT GPU. If you struggle with GPU memory use I can recommend the latest 2023.2 release where GPU baking profile makes it easier to get bakes to work on low memory GPUs.

    Best Regards,
    Kasper

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.