Unity Issue Tracker - Various light-related events incur a CPU cost in scenes with baked lights
Closed
UUM-16532
Various light-related events incur a CPU cost in scenes with baked lights
Unity: Universal RP
Won't Fix
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
We are working on Forward+ and RenderGraph that is rewriting parts of these functions. The current runtime cost of these functions is in the order of 0.0x ms which is not enough user pain to justify we improve the old code path.
Steps to reproduce
Download the attached project (BakedLightsCPUSpike-URP.zip)
Open the EmptyScene
Open the Profiler window, and in the search box, type in "light"
Enter Play mode
Press T on the keyboard to load a scene additively
Scrub through the graph until you find the the events matching the "light" search query
Expected behavior
Light-related events should not incur a CPU cost when there are no realtime lights in the scene
Actual behavior
Various events incur multiple milliseconds worth of CPU time even when there are no realtime lights present (check the attached screenshot)