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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
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.