Unity Issue Tracker - Lighting generation background task has inaccurate time calculations and progress bar
Closed
UUM-85224
Lighting generation background task has inaccurate time calculations and progress bar
Unity: Lighting
Won't Fix
6.0.X
This has been improved in a future version of the Editor. It is not possible to backport however due to architectural changes.
How to reproduce:
1. Create a new HDRP project
2. Go to Window -> Rendering -> Lighting
3. Click "Generate Lighting"
4. Observe the Background Task
Expected results: The calculated time is close to the time the task takes and the progress bar moves gradually along the processes
Actual results: The progress bar jumps to an end and displays 2-5 seconds for around 4-5 minutes
Reproducible with: 2023.2.0a1, 6000.0.24f1
Not reproducible with: 2021.3.45f1, 2022.3.50f1, 2023.1.0b1
Reproducible on: macOS Sequoia 15.0 (M1 Max)
Not reproducible on: No other environment tested
Notes:
The progress bar displays the process like it's almost finished
When jumping to that stage, the calculated time starts at 2 seconds and grows on one second each minute (usually goes up to 5 seconds)
This state of progress bar and remaining time is redundant because it is not close to the real time
Best to be observed in bigger projects (HDRP or URP sample)
In 6000.0.24f1 the bug happens on the third stage of light baking, in 2023.2.0a1 - on the first
There are slight differences in the behavior between newer and older versions but overall it remains the same
Prioritise and Follow this issue
Have a workaround or additional info about this issue?