# How to get dynamic shadows without using a lot of stationary/moving lights?

**URL:** <https://forums.unrealengine.com/t/how-to-get-dynamic-shadows-without-using-a-lot-of-stationary-moving-lights/371568>\
**Category:** Rendering\
**Tags:** shadow, unreal-engine, lighting-problem, Lighting, question\
**Created:** [September 25, 2016, 12:58pm UTC](https://forums.unrealengine.com/t/how-to-get-dynamic-shadows-without-using-a-lot-of-stationary-moving-lights/371568 "2016-09-25T12:58:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [September 25, 2016, 12:58pm UTC](https://forums.unrealengine.com/t/how-to-get-dynamic-shadows-without-using-a-lot-of-stationary-moving-lights/371568/1 "2016-09-25T12:58:07Z")

</div>

How can I get dynamic shadows without using a lot of stationary lights, they cause a big performance drop.

Do I need to change a certain amount of them to stationary or just place some stationary lights near the static ones in particular areas to create shadows?

My game currently has almost no shadows on moving objects and it looks kind of weird but I can’t change all lights to stationary due to the performance drop.

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [September 26, 2016, 9:00am UTC](https://forums.unrealengine.com/t/how-to-get-dynamic-shadows-without-using-a-lot-of-stationary-moving-lights/371568/2 "2016-09-26T09:00:33Z")

</div>

You can’t expect having many shadow-casting lights and good performance at the same time. You can have as many stationary lights as you need, but their shadow-casting performance will depend on number of objects/triangles they are affecting.

To put it straight, you should try to design the level in such way, that no more than 2-3 shadow-casting lights are visible at any given point in the level and number of dynamic objects, affect by those lights is kept to a minimum. If you are working with mobile, the constraints here are even tougher.

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [October 1, 2016, 9:26pm UTC](https://forums.unrealengine.com/t/how-to-get-dynamic-shadows-without-using-a-lot-of-stationary-moving-lights/371568/3 "2016-10-01T21:26:59Z")

</div>

So I basically need to fake it with static lighting and then just put a few stationary lights so that the shadows still look good?

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [October 2, 2016, 12:32pm UTC](https://forums.unrealengine.com/t/how-to-get-dynamic-shadows-without-using-a-lot-of-stationary-moving-lights/371568/4 "2016-10-02T12:32:10Z")

</div>

Pretty much yes.
