A couple of useful macros: Loops Per Tick

I’m sure you’ll find some use for them :slight_smile: In my toolkit I’m planning to use them for pregeneration. I’ll run it in the background before it is needed; say pregeneration for the next unit while the previous unit is moving so that it is already calculated when the next unit is activated. If you want to be fancy it is also pretty easy to set up a queue of slow loops by checking if the “ongoing slow loop” variable is true before starting a loop and storing the input in an array until it is false again.

Here is a quick video I made a while ago demonstrating a slow loop in action, using my visibility algorithm. Both instantaneous and slow generation is shown. Having the loop be this slow is certainly overkill, but I’ve slowed it down as much as I can for demonstration purposes: