# UE 4.13 Shadow Depths Regression?

**URL:** <https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, question\
**Created:** [September 3, 2016, 8:46pm UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267 "2016-09-03T20:46:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mentos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mentos](https://forums.unrealengine.com/u/Mentos)\
**Post date:** [September 3, 2016, 8:46pm UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/1 "2016-09-03T20:46:03Z")

</div>

We updated our multiplayer FPS to UE4.13 yesterday and a lot of our players were complaining about bad FPS. Our players reported that lowering their ‘Shadow Quality’ had the greatest improvement to FPS.

I just ran some simple FPS/GPUProfile tests in the same location in 4.12 and 4.13 with Epic settings and it seems there may be a significant regression in performance in UE4.13? See the attached screenshots. 4.12 gets about 70fps and 4.13 gets about 54fps in the same location

UE4.12 GPUProfile:

 ![105555-ue412gpuprofile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/0/e40614152710d0aec83b09536152aa96af1ef712.png)

UE4.13 GPUProfile:

 ![105556-ue413gpuprofile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/a/92a1d26f038bc4a25c5ed1af8318e13fc6d8f051.png)

here is the scene in question

UE4.12 screenshot: [Dropbox - ue412screenshot.png - Simplify your life](https://www.dropbox.com/s/6go25lbessovr7e/ue412screenshot.png?dl=0)

UE4.13 screenshot: [Dropbox - ue413screenshot.png - Simplify your life](https://www.dropbox.com/s/wcy0rncencrp53u/ue413screenshot.png?dl=0)

---

<div class="post-metadata">

**Author:** ![Tarwine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tarwine](https://forums.unrealengine.com/u/Tarwine)\
**Post date:** [September 6, 2016, 6:50pm UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/2 "2016-09-06T18:50:16Z")

</div>

Getting as similar issue, getting some major jittering within VR unless I lower shadow quality to Medium. 10-20fps loss from 4.12.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 6, 2016, 8:44pm UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/3 "2016-09-06T20:44:49Z")

</div>

Hi Mentos and Tarwine,

Can you either one of your post a sample scene that can recreate the issue? I was able to a taxing scene setup in 4.12 and then when I opened that same scene in 4.13 I get better performance at the same settings by at least 10+ fps.

I’ll need to know specifics on the scene setup:

- Light mobility and types used
- Specific settings for the light if any
- Any other steps/details to reproduce in a sample project would be ideal since an already developed project has too many things going on that makes it harder to narrow down anything to show the regression aside from just a profile screen or stat fps/unit.

> **[What's New](https://docs.unrealengine.com/5.1/en-US/whats-new/)**
>
> Information about new features in each release of Unreal Engine

* * *

New: Refactored shadow depth.

- Shadow setup and render target allocation now happens in InitViews, and shadow depth rendering happens at one spot in the frame. This provides control over where shadow depths are rendered for things like async compute, and allows easy atlasing of shadowmaps for forward shading.
- The 33Mb of shadow depth buffers in FSceneRenderTargets has been removed, and shadow depth buffers are now allocated as needed. Shadow depth memory is now unbounded which can cause Out of Video Memory in extreme cases.
- A large amount of duplicated code to handle each shadow type has been combined.
- Cleaner parallel rendering: no more view hacking for the shadow depth pass, no more shadow depths in the middle of translucency.
- ‘vis ShadowDepthAtlas’ or ‘vis WholeSceneShadowMap’ must now be used to visualize the shadow depth textures.

* * *

This information may be helpful for you to know as well if you did not see it in the release notes.

Thanks!

Tim

---

<div class="post-metadata">

**Author:** ![Mentos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mentos](https://forums.unrealengine.com/u/Mentos)\
**Post date:** [September 7, 2016, 9:59pm UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/4 "2016-09-07T21:59:46Z")

</div>

Hey Tim,

After spending the day testing in a new project I believe I have found the cause of the perceived ‘regression’ with shadows. It all boils down to the fact that in UE4.13 shadows are still calculated for lights that have their intensity set to ‘0.0’ . In UE4.12 a light’s shadows were not calculated if the light’s intensity was set to 0.0

This became apparent in our project because we have player flashlights and lightning FX that were disabled by way of setting the intensity to 0.0. When we switched to UE4.13 we immediately saw a performance impact because of this. For now we are going to use ‘SetCastShadows(false)’ when we disable these lights.

If you’d like to test this add a bunch of spotlights to a scene in 4.12 and notice that setting their intensity to 0.0 will disable the calculation in ‘ProfileGPU’. Create the same scene in 4.13 and notice that an intensity of 0.0 does not affect the calculation and you must instead disable ‘CastShadows’ for the shadow calculation to be skipped.

I think the desired behavior would be if shadows were disabled at 0.0 intensity. Hope this helps!

Thank you,  
George

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 8, 2016, 8:15pm UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/5 "2016-09-08T20:15:04Z")

</div>

Thanks George! That’s definitely a good test case and I was able to easily see the performance dip by about 30-40 FPS in my test project when having the light intensity set to 0 and the shadow casting still enabled.

You can track the status of the ticket here: [Unreal Engine Issues and Bug Tracker (UE-35747)](https://issues.unrealengine.com/issue/UE-35747)

---

<div class="post-metadata">

**Author:** ![vagrantart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vagrantart](https://forums.unrealengine.com/u/vagrantart)\
**Post date:** [April 26, 2017, 3:20am UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/6 "2017-04-26T03:20:01Z")

</div>

Just testing out 4.16 preview it seems still there,on the issue tracker it says ‘cannot reproduce’.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [April 27, 2017, 3:02pm UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/7 "2017-04-27T15:02:19Z")

</div>

I just ran the test project provided in the bug report and it does not occur on my end in the 4.16 preview 1 build. Are you sure you are testing against the same issue?

I can provide you with a test project if you wish so you can see for yourself. You would want to follow the steps on the tracker in order to test.

Thank you,

H

---

<div class="post-metadata">

**Author:** ![vagrantart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vagrantart](https://forums.unrealengine.com/u/vagrantart)\
**Post date:** [April 28, 2017, 2:07am UTC](https://forums.unrealengine.com/t/ue-4-13-shadow-depths-regression/369267/8 "2017-04-28T02:07:35Z")

</div>

Sorry about that you’re right not getting that error anymore when looked in the GPU Visualiser and played with lights it’s no longer calculating the lights in my scene that are off.
