Parallel/Autorun Event Performance

I am pretty new to this engine and I was wondering whether I understood parallel/autorun events correctly and how well the perform.

So if understand this correctly parallel/autorun events check their conditions repeatedly and indefinitely (as long as the player is in their scope). How often do they do this, every game tick? This just sounds like it would be unbelievably bad performing. I am not saying that this is never the right tool for the job but is seems to me that these type of events should be avoided when ever possible. Which is bad because there a only very few event trigger options in the editor.

So in my case, I would like to create a day night system. I want to progress the time of day after the player performs certain tasks and I want to represent the time of day with a screen tint. However I want the tint to only be applied when the player is outdoors. So my best guess on how to implement this would be to create a parallel common event that checks some variable that tracks whether or not the player is indoor and then tints the screen depending on the status of said variable.

Just thinking about this makes me want to claw my eyes out. The game will check every game tick whether the player is indoors or not just to apply a screen tint when in reality I only need the game to check every time there is a map transition.

So, is there some event trigger that only triggers on map transition? I do not know of one.
If there is none I most certainly won't use parallel events for that. I would rather write a plug-in that intercepts the Transfer Player event command and executes some custom code or some specific event but please tell me I don't have to because there is already a way to trigger events on map transition.
Normally you just put an autorun on each "outdoor map" which called a normal common event then erase it. The content of this normal common event is your time system.
Put an autorun on each "indoor map" which only reset tint screen then erase it.

Why would you even need a parallel process for that if you intend to run them only after performing certain task or transfer?

Yes, both autorun and parallel run their commands indefinitely as long as the condition are met. If you need them to run once, seal that condition immediately. If there's no wait command, they will cycle per tick.
Normally you just put an autorun on each "outdoor map" which called a normal common event then erase it.
So how does one erase events. As I said, I am pretty new to this and upon a quick skim over the event commands I did not see a delete option.
your assumptions of parallel processes and autoruns are correct, and yes, they are run every frame by default.

what you're missing is the key to control that behaviour and reduce the lag: the wait command.
You'll have to know what the wait command really does: it tells the engine to skip processing the current event for x frames.

In the case of triggered event that results in a pause, continuing the sequence after the wait.
But for parallelsand autoruns, that turns into executing the loop only once every x frames, thereby reducing lag.


as for your last question - erase event is one of the event commands, and it erases the event until the map is reloaded

I suggest you follow the link to the starting point in my signature to get some basics on how event commands and the engine works
Thread revive! I was wondering whether parallel triggers should be used sparingly for performance reasons? Or can I use them as much as I please?
Necro-post notice: @Lark_Larkington

Please start your own thread (in MV Support, which is where this one should have gone) to ask your own question. Also state what you intent to use them for.

Original thread: https://forums.rpgmakerweb.com/threads/parallel-autorun-event-performance.125369/