Parallel Common Event canceled by map transfer

I've been bugged for some time with that problem :
When playing, map transfers seem to cancel ongoing parallel common events (version 1.5.2).
To make sure it wasn't wasn't caused by my settings, I tryed a dumb down version on a test project (see attached pictures).
So, am I doing it wrong, or is there a setting to prevent it from happening ?
If not, I guess I'll just implement a more thorough step by step check to resume the event where it was canceled but that feels like overkill.
Yes it will be canceled, AutoRun however will not : )
Obviously, because the player can't act during autorun events, so he can't initiate a map transfer.
I use several parallel events on my project that need to run permanently from when they are activated. So far they do, but being canceled at every map transfer, while not completely game breaking, is messing things up a bit. That's why I'm asking.
If there's really no other way, I'll go for my backup plan, event if that increases the process load a bit.
I'm pretty sure that parallel events are limited to the screen they're on. If you need something to continue after a screen change, I think it should be in a common event. An alternative is to use variables/switches that is read by a matching common event on the next map.

Image overlays would be a little trickier since you would have to store any changes to the XY prior to the map move, have the next map's parallel process pick those variables up, and then manually fade the screen. At least that's my take on how to solve it without a common event (though I would probably just use a common event with a switch as it's condition).
As I said at the start, I am talking about common events. They don't continue after screen change. That's the problem. :LZSwink:
As my test shows, they are canceled and reseted from the start.
My mistake, I misread it. It looks like something is messing up for you then. Because time systems wouldn't work if it reset on every map load. You do set the variable's initial value outside of the common event right?
That's how the system works. I tryed in a new project to make sure of it.
The variables both start at 0 and the event increases each of them by 1.
The result shown in the second picture (on my first post) is what happens after a few minutes and several map transfers.
I already knew that maps transfers were causing the common events to start, but I wasn't sure if the previous events was still running until the end or canceled. it turns out it's just canceled and replaced by the most recently launched event.

Anyway, I'm assuming it isn't a bug and is working as intended, and I suppose there's no workaround. So I'll go for a step check to prevent this from happening.
If anyone happens to have the same needs and problem, I'll leave this potential solution (see attached pictures). Of course it needs more work for more complex events, but the base is there.
If someone has a better idea, feel free to share it.
I'm actually kind of blown away. I've used time systems before and never noticed that the parallel common events were restarting on every map!
@TWings
as you've learned, all common events are restarted on map load. That is exactly what creates the effect you have seen.

However, a good parallel process timing event that takes this into account will still work correctly - you only get problems because your two previous tries aren't taking this into account correctly.

Your loop in the second attempt screenshot basically works in the same way as the wait from the first sets of screenshot, and that is exactly the problem.
Timing can work, but the reset will always have an unknown amount of any waits in the parallel process missed, exactly at the moment when the common event is reset. So the key to correct timing is to have the waits as few as possible.
and yes, that is contrary to lag reduction - you can't have both and need to find your own balance between too much lag for the game and too much skips due to common event resets.

one of the solutions for newer and better computers is to split the basic timing and the reactions to that timing.
Most of the more modern computers have enough power to handle a single simple parallel process without lag even without waits, but that will use up a good part of their reserves and only work if your other parallel processes are handled carefully.

My suggestion as a compromise would be to have one parallel common event as a frame counter with nothing else and a very small wait of one or two frames - five frames max if you want to go to really old computers or have to use a lot of other common events.
This parallel process should only contain two commands - the wait and one control variable to count up the frames.

Then you'll make a second parallel process that can have a much higher wait to just check the frames and transfer their numbers into whatever other timing system you want or what you want connected to it. This should have a wait(30) or higher to prevent it from becoming laggy in its own.

If your main control requires timing that needs much less than a wait(30), then you have to combine both of the parallel processes into a single one - two parallel processes with low waits would eat up much more resources and make the game lag faster. But on the other hand if your basic parallel process is that fast you would loose less on the map transfer resets - as you've seen yourself those only become more critical if there are higher wait times in the parallel process.
@Mrs_Allykat : It depends how long your event takes to run. But in the case of several seconds (like in my test, 15 seconds with a wait 900), you can assume the player has enough time to transfer, particularly in towns were you can potentially change maps 2 or 3 times within ~5 seconds.

@Andar : Yeah intially, I was trying to avoid overloading the system with parallell processes running too often just to wait. As a programmer the first thing you want to do is always to optimise the code whenever possible. With RM it turns out the best is often the other way around.
In worst case, I can live with a loss of ~1 second (a map transfer take at least that long anyway), so I set a 60 frames wait loop on my real events. Of course they aren't just about increasing variables, so I have to add a bunch of failsafe anyway to ensure that nothing important is lost or skipped on a map transfer.
Then yes, I see it now. I don't think one global "tick" or "timer" would be that taxing. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/parallel-common-event-canceled-by-map-transfer.102833/