Search Issue Tracker
By Design
Votes
2
Found in [Package]
11.0.0
Issue ID
1323811
Regression
Yes
[HDRP] GPU Performance decreases when shadow map is enabled
How to reproduce:
1. Open the attached "1323811_Repro" project
2. Open the Scene "SampleScene"
3. Open the Profiler (Window->Analysis->Profiler)
4. Enable GPU Usage Module in the Profiler (top-left corner Profiler Modules->GPU Module)
5. Make sure to profile PlayMode
6. Enter the Play Mode
7. In the Profiler's GPU Module details panel search for "RenderDefferedLightingCompute"
8. In the Game view press "F1" to enable/disable the shadow and compare "RenderDefferedLightingCompute" Total time when shadows are enabled/disabled
Expected results: "RenderDefferedLightingCompute" Total time takes ~1-1.5% when shadows are turned on or off
Actual results: "RenderDefferedLightingCompute" Total time takes ~3% or more when shadows are turned on (FPS can also drop by ~50 or more)
Reproducible with: 11.0.0 (2021.1.1f1), 12.0.0 (2021.2.0a11)
Not reproducible with: 7.5.3 (2019.4.23f1), 10.4.0 (2020.3. 3f1)
Could not test with: 2018.4.33 because HDRP was not yet available
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
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
- Graphics Compositor breaks Unity rendering when the "Output Camera" is changed to a scene Camera and one Camera SubLayer is active
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
Resolution Note:
The project linked in the case has shadow filtering quality set to "High" (in the HDRP asset) and the settings on the directional light use 48 samples (instead of 16 by default). These are very high end settings so it's expected to get a much higher performance hit.
For reference, the default filtering quality when creating a new HDRP asset is still medium which matches what was hard coded for older HDRP versions so if you revert your settings back to medium you should have similar performance.