Search Issue Tracker
Fixed
Fixed in 2022.3.1f1, 2023.1.0b20, 2023.2.0a18
Votes
0
Found in
2022.3.1f1
Issue ID
UUM-21745
Regression
No
Static batching doesn't work when the shader uses unity_ProbeVolumeParams
Reproduction steps:
1. Open the attached project “StaticBatchDraw”
2. Open “Assets/Scenes/SampleScene” Scene
3. Open “Packages/Owlcat.Visual/ShaderLibrary/GlobalIllumination.hlsl” Shader file in any text editor
4. Uncomment line 186 and save the file
5. Enter Play mode
6. In the Frame Debug window press the “Enable” button (Window → Analysis → Frame Debugger)
7. In the dropdown menu navigate to: “ExecuteRenderGraph → Main Camera → GBufferPass.Opaque → RenderLoop.DrawSRPBatcher → SRP Batch”
8. Look for “Event #6: SRP Batch“ text in the Frame debug window
Expected result: Only “Event #6: SRP Batch” is shown
Actual result: After “Event #6: SRP Batch” additional “(3 draw calls)” is printed
Reproducible with: 2022.1.24f1, 2022.2.2f
Couldn’t test with: 2020.3.43f1, 2021.3.16f1, 2023.1.0a24 - Errors in “Owlcat.Visuals” package
Reproducible on: macOS 13.0.1 (Intel), Windows 10
Not reproducible on: M1 MacOS 13.0
Notes:
- The three draw calls reveals the cubes are not being batched.
- The presence of unity_ProbeVolumeParams should not affect the renderers, as it is hidden behind a define. I've coloured the bakedGI in both paths to show that the 'else' body is not being used.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Add comment