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
- Incorrect ScrollToItem behavior when called on a deattached ListView
- Zooming in/out in Scene View window on the display the zoom takes place in does not work
- Changing Game View resolution when there are 2 Game View Windows on 2 different displays makes the view stretched
- Maximising Game view window on one display makes black bars appear on another display
- Creating a 3D Object when using 2 monitors and 2 Game View Windows on different monitors the created 3D Object only appears on one of them
Add comment