Search Issue Tracker
Fixed
Fixed in 6000.0.23f1
Votes
0
Found in
6000.0.17f1
Issue ID
UUM-79279
Regression
No
WorldLightManager.Collect has poor performance when a large amount of GameObjects are present in the scene
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
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Graph Execution errors when using GPU occlusion culling with 'Opaque Objects' frame setting disabled on a Camera
- Animator window: “Delete” menu item not greyed out for Base Layer context menu
- Resetting “PC_RP Asset (Universal Render Pipeline Asset)” causes Game view to become black and throws Renderer and NullReference errors in the Console window
- [Mobile] Player Crash on scripting_invoke_profiler_begin when the built Player Scene has an empty UIDocument and is built on IL2CPP
- Unnecessary Warnings are logged when running Player with -batchmode -nographics
morphex
Oct 07, 2024 18:42
Can confirm, WorldLightManager.Collect is taking 10ms, I have currently 10K GameObjects in my scene, renderer disabled, I am getting around 6MS just collecting lights.