Question regarding Parallel Processes and Lag

Suppose I have a parallel process running with a counter

1)

if x = 100

then

''Whatever''

else

wait 60 frames

x=x+1

Can i reduce the impact on the performance if I change it to:

2)

if x=10

then

''Whatever''

else 

wait 600 frames

x=x+1

The result is the same in terms of time needed to reach the condition, but since the 1 runs every sec and the 2 every 10 this makes it less heavy?
yes, precisely because it runs less often.


You need to know that "wait" is not what that command does - it is only named wait because to the player it looks like a waiting loop.


In reality the wait command tells the engine (or more precisely the main game loop of the engine) to skip execution of that process for X frames.


And while the execution is skipped, it can of course not contribute to lag.

Original thread: https://forums.rpgmakerweb.com/threads/question-regarding-parallel-processes-and-lag.54592/