How to reproduce:
1. Open the attached “IN-81828” project
2. Open the “Demo” scene (Assets/PolygonFantasyKingdom/Scenes/Demo)
3. Open the Profiler window (Window → Analysis → Profiler)
4. Ensure that the Profiler is set to record Play mode data
5. Enter Play mode
6. After a few seconds, exit Play mode
7. Open the Profile Analyzer (Window → Analysis → Profile Analyzer)
8. Press “Pull data”
9. In the name filter, enter “Collect”
10. Observe the median times for “WorldLightManager.Collect”
Expected result: WorldLightManager.Collect has low median times (close to 0ms)
Actual result: WorldLightManager.Collect has high median times (around 0.10ms per frame)
Reproducible in: 6000.0.17f1
Could not test with: 2021.3.43f1, 2022.3.45f1 (Package errors when downgrading project)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Due to the use of GameObject.FindObjectsByType, this issue becomes more apparent in larger projects