Search Issue Tracker
Fixed in 13.1.1
Votes
1
Found in [Package]
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
-
pensionerov
Mar 21, 2022 15:10
Is it possible to backport the fix to the latest LTS release?
-
Alan-Liu
Aug 15, 2021 05:27
Can the fix be backported to 2019.4?
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
- Long Prefab save times when using Unity 2022.2 and higher
- Console displays error "UnityException: Creating asset at path Assets/Scenes/ .scenetemplate failed." during scene template saving
- "Development Build" watermark is shown in non-development UWP release builds
- Console errors appear when the Inspector is set to Debug and a GameObject is selected
- A script public variable value is not used when set in the Inspector window
Resolution Note (fix version 13.1.1):
Fixed in 2022.1.0a16
Resolution Note:
Fixed in 2020.1.7f1