Search Issue Tracker
By Design
Votes
1
Found in
2018.4
2020.2
2020.2.0a19
Issue ID
1271968
Regression
No
[2D] Sprite created with SpriteDataAccessExtensions is not dynamically batched
How to reproduce:
1. Open the project from the attached file "1271968.zip"
2. Open SampleScene
3. Go to Window > Analysis > Frame Debugger and enable the Frame Debugger
4. Open the Game View and Inspect the Frame Debugger
Expected result: Draw calls are batched
Actual result: Draw calls are not batched
Reproducible with 2018.4.26f1, 2019.4.9f1, 2020.1.3f1, 2020.2.0a21
Note: The script that uses SpriteDataAccessExtensions is in Assets > SpriteDicing > Editor > DicedSpriteAtlasEditor.cs starting at line 442
Comments (1)
-
sian8754
Aug 26, 2020 14:53
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note:
The vertex count of the Sprite exceeds the maximum Vertex Count that satisfies the requirement for Dynamic Batching.
Batching dynamic GameObjects has certain overhead per vertex, so batching is applied only to Meshes containing no more than 900 vertex attributes, and no more than 300 vertices.
https://docs.unity3d.com/Manual/DrawCallBatching.html