Search Issue Tracker
Fixed in 2023.1.0b20
Fixed in 2022.3.X, 2022.3.1f1, 2023.1.X, 2023.2.X
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Add comment