Search Issue Tracker
Fixed in 2021.1
Fixed in 2019.4, 2020.1
Votes
0
Found in
2019.3.2f1
2019.4
2020.1
2020.2
Issue ID
1261542
Regression
No
Multiple 'Render Main Shadowmap' -> '... Draw' -> 'SRP Batch' are present when the materials only have different properties
How to reproduce:
1. Open attached project "BatchTestProject.zip" with -force-gles32 argument command
2. Open scene "BatchTest"
3. Open and enable Window -> Analysis -> Frame Debugger
4. In Project window, select and observe two materials "New Material 1" and "New Material" (all the values are the same)
5. Observe Frame Debugger -> Render Main Shadowmap -> ShadowLoopNewBatcher.Draw -> SRP Batch (only single SRP Batch is present)
6. In Project window, select "New Material"
7. Change any value
8. Observe Frame Debugger -> Render Main Shadowmap -> ShadowLoopNewBatcher.Draw -> SRP Batch
Expected result: only one SRP Batch is present
Actual result: two SRP Batches are present
Reproducible with: 2019.4.3f1 (URP 7.3.1), 2020.1.0b16 (8.1.0), 2020.2.0a10 (9.0.0-preview.35)
Could not test with: 2018.4.25f1 (4.10.0-preview), 2020.2.0a11, 2020.2.0a17 (the Editor crashes upon load up due to other bug)
Multiple 'Render Main Shadowmap' -> '... Draw' -> 'SRP Batch'es are present when multiple materials with different properties are present
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
- [Vulkan] Crash in Windows Standalone when Vulkan is set as rendering API and player window is out of focus
- "Can't destroy Transform component" Error is thrown when closing a scene that contains a DontSave Prefab with a Child
- [Particle System] Editor freezes when assigning a nested Particle System in the Sub Emitter Module
- Unable to switch to different material when selecting another material from Asset selector window on Particle System Material
- Inspector displaying wrong characters when using ANSI encoding and non latin characters in a Shader property
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0a1
Resolution Note (fix version 2020.1):
Fixed in 2020.1.7f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.16f1