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

You can make a custom loop with delay like this:

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