# More precise control over disabling dynamic shadow casting from actors that are culled?

**URL:** <https://forums.unrealengine.com/t/more-precise-control-over-disabling-dynamic-shadow-casting-from-actors-that-are-culled/480019>\
**Category:** Rendering\
**Tags:** culling, casting, Shadows, unreal-engine, dynamic, question\
**Created:** [March 12, 2021, 6:49am UTC](https://forums.unrealengine.com/t/more-precise-control-over-disabling-dynamic-shadow-casting-from-actors-that-are-culled/480019 "2021-03-12T06:49:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uJelleh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uJelleh](https://forums.unrealengine.com/u/uJelleh)\
**Post date:** [March 12, 2021, 6:49am UTC](https://forums.unrealengine.com/t/more-precise-control-over-disabling-dynamic-shadow-casting-from-actors-that-are-culled/480019/1 "2021-03-12T06:49:04Z")

</div>

Hello! I have a question about culling and shadow casting. I searched for a while and came across a couple other posts asking about the same thing, but with no clear answers yet:

[https://forums.unrealengine.com/development-discussion/rendering/1437233-dynamic-light-culling-and-freezerendering-how-it-all-works](https://forums.unrealengine.com/development-discussion/rendering/1437233-dynamic-light-culling-and-freezerendering-how-it-all-works)

[https://answers.unrealengine.com/questions/725122/view.html](https://answers.unrealengine.com/questions/725122/view.html)

[https://answers.unrealengine.com/questions/264316/view.html](https://answers.unrealengine.com/questions/264316/view.html) (The very bottom answer here seems to answer my question directly, but this thread is 5 years old…)

From my own testing using the “freezerendering” command, I have noticed that all objects that are culled still cast shadows. This of course is normal and expected behavior, because you’d still want to see a building’s shadow, for example, even though you can’t see the building itself.

**My question is: can this be more precisely controlled? Can shadow casting be disabled (if the actor is culled) on a per-actor basis?**

We have a very large datasmith project with thousands of actors spread across 4 houses, and currently, due to time constraints, are optimizing it to run with only dynamic lighting. At the moment, the only light source in our scene in a SunSky (skylight, directional light set to moveable, etc). While standing inside of another house and looking in the direction of the other houses, all of the other houses and the meshes inside them are all indeed culled, but ALL of their shadows still seem to be rendered, which, by looking at Stat RHI, seems to be costing a huge amount of performance. I’ve tried messing with the project setting “Min Screen Radius For Cascaded Shadow Maps” but it doesn’t seem to do anything, regardless of the value set.

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [July 19, 2023, 11:42am UTC](https://forums.unrealengine.com/t/more-precise-control-over-disabling-dynamic-shadow-casting-from-actors-that-are-culled/480019/2 "2023-07-19T11:42:26Z")

</div>

did you ever solve this? Trying to achieve same thing , culled actor still casting dyn shadow.

---

<div class="post-metadata">

**Author:** ![HTPlatypus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/htplatypus/32/676340_2.png) [@HTPlatypus](https://forums.unrealengine.com/u/HTPlatypus)\
**Post date:** [December 8, 2023, 3:36am UTC](https://forums.unrealengine.com/t/more-precise-control-over-disabling-dynamic-shadow-casting-from-actors-that-are-culled/480019/3 "2023-12-08T03:36:54Z")

</div>

Desperately need this as well. Surprised that an in engine solution doesn’t exist, or at least I haven’t found one yet

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [December 16, 2023, 10:36pm UTC](https://forums.unrealengine.com/t/more-precise-control-over-disabling-dynamic-shadow-casting-from-actors-that-are-culled/480019/4 "2023-12-16T22:36:46Z")

</div>

I sort of did it with distance checking to the player. You can experiment

> **[Screenshot](https://prnt.sc/aHdXxki7YarI)**
>
> Captured with Lightshot

> **[Screenshot](https://prnt.sc/722zxu49-TeT)**
>
> Captured with Lightshot

This one is set without culling, its based on players distance, hardly most efficient but might give you some ideas.
