Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

0

Found in

2022.3.58f1

6000.0.39f1

6000.1.0b7

6000.2.0a4

Issue ID

UUM-97855

Regression

No

Script icon Gizmos cause lag/performance issues in Scene view even when the Scene Camera is not pointed at Gizmos

-

Reproduction steps:
1. Open the attached “IN-93546.zip” project
2. Open the “crime” Scene
3. Make sure Gizmos are enabled in the Scene view
4. Open the Profiler (Window > Analysis > Profiler)
5. Click on the ‘Play mode’ dropdown and change it to ‘Edit mode’
6. At the bottom click the ‘Live’ button and change the ‘Main Thread’ dropdown to ‘Render Thread’
7. Move the Scene Camera so that no Gizmos are visible
8. In the Profiler, click the Record icon (right of the ‘Edit Mode’ dropdown)
9. Right-click in the Scene view to trigger a repaint
10. Click on captured data in the Profiler
11. Look at the Calls number for ‘FillQuadIndexBuffer’ or ‘GfxDrawDynamic’ (called by ‘DrawGizmos’)

Actual result: ‘FillQuadIndexBuffer’ and ‘GfxDrawDynamic’ have more than 16000 Calls even when the Scene view Camera is not looking at the Gizmos
Expected result: Scene view Camera culls the icons/doesn’t draw icons that are invisible

Reproducible with: 2022.3.58f1, 6000.0.39f1, 6000.1.0b7, 6000.2.0a4

Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environment tested

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.