# Most efficient way to turn on and off many stationary lights at once

**URL:** <https://forums.unrealengine.com/t/most-efficient-way-to-turn-on-and-off-many-stationary-lights-at-once/440745>\
**Category:** Rendering\
**Tags:** Optimization, unreal-engine, Performance, stationary-light, Lighting, question\
**Created:** [January 6, 2019, 5:24pm UTC](https://forums.unrealengine.com/t/most-efficient-way-to-turn-on-and-off-many-stationary-lights-at-once/440745 "2019-01-06T17:24:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![X-perto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X-perto](https://forums.unrealengine.com/u/X-perto)\
**Post date:** [January 6, 2019, 5:24pm UTC](https://forums.unrealengine.com/t/most-efficient-way-to-turn-on-and-off-many-stationary-lights-at-once/440745/1 "2019-01-06T17:24:12Z")

</div>

The title says it all. I have a level with about 150 stationary lights that I must turn on and off all at the same time. I see some simple ways of doing this but I’d like to know what’s correct way of doing something like this from a performance-wise viewpoint, I don’t want to have an fps drop because of this or at least limit the “damage”.

Thanks in advance.

PS: I put this question into the “Blueprint scripting” category but if needed I can use C++, my project gets nativized anyways.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [January 9, 2019, 3:03am UTC](https://forums.unrealengine.com/t/most-efficient-way-to-turn-on-and-off-many-stationary-lights-at-once/440745/2 "2019-01-09T03:03:27Z")

</div>

You can make a custom loop with delay like this:

 ![264684-loopp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/8/7c8ab2ca83ccd118601dcab272031ff7237b0319.jpeg)

Set Delay duration to lowest you can get without a hiccup.

---

<div class="post-metadata">

**Author:** ![X-perto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X-perto](https://forums.unrealengine.com/u/X-perto)\
**Post date:** [January 9, 2019, 1:59pm UTC](https://forums.unrealengine.com/t/most-efficient-way-to-turn-on-and-off-many-stationary-lights-at-once/440745/3 "2019-01-09T13:59:10Z")

</div>

This is brilliant. So simple yet so effective! Thank you.
