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
- [macOS] Project fails to load when Virtual Artifacts are Corrupted
- Long scheduler times on main thread when using InstantiateAsync with a singular massive Prefab
- The project hangs upon opening it when importing the "discrete_rank2_vector_v2_0.onnx" file
- Opening the Look Dev hangs the Editor when the window is opened for the first time in the project or after deleting the Library folder
- Look Dev has blurry icons on 4k monitors
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.