Step counter parallel event that doesn't lag the game?

Is this wishful thinking?

I added a step counter as a parallel common event to induce a certain effect from one of my actors after a certain amount of steps are taken. Things got just laggy enough to make the graphics wig out and make you dizzy looking at them while the character walks.

Is there a better way to do this, without causing lag?


This is my event btw,

◆Control Variables:#steps1 = Steps
◆Loop
◆Control Variables:#steps2 = Steps
◆If:#0007 > #0006
◆Break Loop
◆
:End
◆
:Repeat Above
Add a wait command. Right now you got that running 60x a second.
@bgillisp
That did the trick, thank you very much!!


EDIT:

@bgillisp Is there a way to reinitialize the step count to zero using this method? It's proving more difficult than I anticipated.

Original thread: https://forums.rpgmakerweb.com/threads/step-counter-parallel-event-that-doesnt-lag-the-game.85606/