Search Issue Tracker

By Design



Found in [Package]


Issue ID




[HDRP] GPU Performance decreases when shadow map is enabled

Package: SRP HD Template


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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.