Search Issue Tracker
Fixed
Fixed in 6000.2.0b9, 6000.3.0a5
Votes
1
Found in
6000.0.47f1
6000.1.1f1
6000.2.0a9
6000.3.0a1
Issue ID
UUM-104210
Regression
No
SpriteShapeController.OnWillRenderObject() is ~20 ms when using SpriteShapeController.BakeMesh() and never updating the spline
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Open the Window > Analysis > Profiler
5. Click "CPU Usage" row
6. In Profiler’s Hierarchy, search for “SpriteShapeController.OnWillRenderObject() [Invoke]”
7. Observe Time ms
Expected result: Time ms is less than 20ms
Actual result: Time ms is ~20ms
Reproducible with: 2022.3.61f1, 6000.0.47f1, 6000.1.1f1, 6000.2.0a9
Reproducible on:
Play Mode
Windows Standalone Player (Time ms is ~7 ms)
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- Spline is never updated
- Forum thread: [https://discussions.unity.com/t/how-to-optimize-spriteshapes/1635877]
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
- Shader warning in 'Hidden/Core/DebugOccluder' thrown after building High Definition 3D Sample Template
- Audio Mixer “+” buttons overlap with UI when the Audio Mixer window layout is set to Horizontal
- "Clear" button in the "Set project display name" closes all the pop-up instead of clearing just a name from the field
- Video Player renders no video on specific devices when using Vulkan
- The Editor slows itself down by showing tons of warnings when the majority of TransformAccessArrays content are NullRefs
Resolution Note (fix version 6000.3.0a5):
Package 13.0.0 has landed with the fix.
Resolution Note (fix version 6000.2.0b9):
Fix for this issue is available on 2D Spriteshape package 12.0.1 and above