Autorun making things really slow?

I'm not the best at RMMZ, but I've made an intro sequence on a single tile that autoruns once the player has been teleported.

Everything works fine for the dialogue and how the characters are moving, but whenever the sequence is over it'll fade out and fade back in very slowly like how it lags if you use a parallel and the player won't be able to move.

Nothing else is set to autorun, nothing is set to parallel. So I don't know why it's doing this? Anyone have a clue? I've been working on this for about 4 days now and I'm extremely frustrated.
It's pretty impossible for anyone to say what you might be doing wrong/inefficiently without seeing your work. So you need to paste screenshots of the event.

It sounds like you might not be correctly turning the event off when it's done (typically turning a self switch on, then having another blank page with the condition of that switch), but that's a guess.
It's pretty impossible for anyone to say what you might be doing wrong/inefficiently without seeing your work. So you need to paste screenshots of the event.

It sounds like you might not be correctly turning the event off when it's done (typically turning a self switch on, then having another blank page with the condition of that switch), but that's a guess.
Yeah I know I was gonna post screenshots whenever I got home and charged my laptop, but I thought it was an issue with it turning off and I double checked it as much as I could but there didn't LOOK like there was an issue with it. I tried with self switches and regular switches and multiple switches but again, I'm not a master and regularly forget easy things
Making everything extremely slow, does sound like a parallax issue. If it would have been an autorun in a loop, you wouldn't have been able to move at all.

You might not have a parallel event on the map, but maybe you have a common event set to parallel, which is trigger by a switch that just was flipped on?

If you have no parallel anywhere, then I can only think this is a plugin issue. Are you using any plugins? (And please don't say you only use the clock calendar system. I would so hate to learn this way that my only plugin is flawed.) 😛
@JohnDoeNews
you're talking about parallel processes, not Parallax - which is something entirely different.
you might want to edit your post before it confuses the OP
Oh yes... Did I say parallax? That is a mistake, of course.
It's corrected 😛
Making everything extremely slow, does sound like a parallax issue. If it would have been an autorun in a loop, you wouldn't have been able to move at all.

You might not have a parallel event on the map, but maybe you have a common event set to parallel, which is trigger by a switch that just was flipped on?

If you have no parallel anywhere, then I can only think this is a plugin issue. Are you using any plugins? (And please don't say you only use the clock calendar system. I would so hate to learn this way that my only plugin is flawed.) 😛
I'm home now so Im gonna go and recheck everything in the area to make sure it's not being ticked by the new autorun

Also I don't use a clock calender system, the plug-ins I have are the simple quest system and Theos limited inventory and I haven't had any issues with them so your plug in is completely fine :]

@JohnDoeNews
you're talking about parallel processes, not Parallax - which is something entirely different.
you might want to edit your post before it confuses the OP
Lol I knew what they meant but thanks for correcting them
As promised, heres the screenshots of my autorun event, I didn't know how to really exclude the dialogue I didn't want to leave anything out by accident, and I checked theres no other autorun events in this mapped area that are being triggered by the switches I have here.

All of the dialogue and movement for the characters are working just fine, its just once everything at the end is done, the player can't move. Putting the switches on the very last end sequence is what causes the game to lag, if I put them where they currently are, the game doesn't lag but the character still can't move.

Should I put it twice at the end of each section of the choice split? I figured it ran all the same if you put it after the end of the choice branch.

Screenshot 2024-05-09 164716.png
Screenshot 2024-05-09 164729.png
Screenshot 2024-05-09 164738.png
Screenshot 2024-05-09 164756.png
I'm home now so Im gonna go and recheck everything in the area to make sure it's not being ticked by the new autorun

Also I don't use a clock calender system, the plug-ins I have are the simple quest system and Theos limited inventory and I haven't had any issues with them so your plug in is completely fine :]
Haha. I didn't think you'd be using it. And if you were, I wouldn't think my plugin would actually be the problem. 😛 Haha. (Actually, this is something I expected my plugin would do, but to my own surprise it didn't, since it basically functions as a looping parallel event)

As promised, heres the screenshots of my autorun event, I didn't know how to really exclude the dialogue I didn't want to leave anything out by accident, and I checked theres no other autorun events in this mapped area that are being triggered by the switches I have here.

All of the dialogue and movement for the characters are working just fine, its just once everything at the end is done, the player can't move. Putting the switches on the very last end sequence is what causes the game to lag, if I put them where they currently are, the game doesn't lag but the character still can't move.

Should I put it twice at the end of each section of the choice split? I figured it ran all the same if you put it after the end of the choice branch.

View attachment 304617View attachment 304618View attachment 304619View attachment 304620
I think I see the problem. Does your problem start after you transfer to a different map?

At the end you do a transfer, and then after that transfer, you try to control events with "Set event location" on that map. That won't work, because you're not on that map anymore.

Instead it now tries to control an event with the same ID on the new map, but if the event or the destination don't exist, it will keep searching for it, till it crashes.

Either remove the set event location command, or make it happen before the transfer.
Haha. I didn't think you'd be using it. And if you were, I wouldn't think my plugin would actually be the problem. 😛 Haha. (Actually, this is something I expected my plugin would do, but to my own surprise it didn't, since it basically functions as a looping parallel event)


I think I see the problem. Does your problem start after you transfer to a different map?

At the end you do a transfer, and then after that transfer, you try to control events with "Set event location" on that map. That won't work, because you're not on that map anymore.

Instead it now tries to control an event with the same ID on the new map, but if the event or the destination don't exist, it will keep searching for it, till it crashes.

Either remove the set event location command, or make it happen before the transfer.
The switches and commands under the choice branches were all working fine, and the "faleal after dream" block is being teleported into the void and set to inivisble, it does start after being transfered from another map, but theres nothing in the autorun event thats attempting to pull anything from the other map.

The player is transfered into the wall in transparent from the other map and the autorun starts, the character sprites are already where they're supposed to be and are not being teleported at the start of the autorun, only at the end into the void and turned invisible.

If I'm describing exactly what you mean please put it in simplier terms lol
The switches and commands under the choice branches were all working fine, and the "faleal after dream" block is being teleported into the void and set to inivisble, it does start after being transfered from another map, but theres nothing in the autorun event thats attempting to pull anything from the other map.

The player is transfered into the wall in transparent from the other map and the autorun starts, the character sprites are already where they're supposed to be and are not being teleported at the start of the autorun, only at the end into the void and turned invisible.

If I'm describing exactly what you mean please put it in simplier terms lol
This command:
1715292940656.png


That command tries to move an event to 0,0 of your current map.

But by then you already left the map. You are now on a different map, on which there might not be an event with the same ID. If there is, that event will be placed in 0,0 of the the new map. If that event doesn't exist, it will cause a problem and most likely crash your game soon after, because it will keep looking for that event that isn't there, to complete its commands.
This command:
View attachment 304622

That command tries to move an event to 0,0 of your current map.

But by then you already left the map. You are now on a different map, on which there might not be an event with the same ID. If there is, that event will be placed in 0,0 of the the new map. If that event doesn't exist, it will cause a problem and most likely crash your game soon after, because it will keep looking for that event that isn't there, to complete its commands.
Ohhh, I see what you're saying.

But no, the player isn't transfered to another map whenever the autorun finishes. By the end of this autorun the player is transfered to the previous location of that event. Unless that counts?

I tried making it so the event dissapears but doesn't teleport, but that still lagged out the game. I also put the player in a place where they're not teleported out of a wall anymore, so it's just a matter of not making them transparent anymore, but the game is still lagging.

I really appreciate your help btw, I know this is a little ridiculous.
another possibility is that one of your switches turns on a common event parallel process.
that is even likely because switch #1 is the default for parallel common events.

you might have at one time while explaring the game changed a common event trigger to parallel process without doing anything with it, and then forgot to change it back.

so go to your common events and check everyone for parallel process, even the ones not used.
another possibility is that one of your switches turns on a common event parallel process.
that is even likely because switch #1 is the default for parallel common events.

you might have at one time while explaring the game changed a common event trigger to parallel process without doing anything with it, and then forgot to change it back.

so go to your common events and check everyone for parallel process, even the ones not used.
OH MY GOD THIS WAS IT

It was a common event I tried (and failed) to figure out how to use to discard an item before I found the plugin, I completely forgot I even made it.

THANK YOU SO MUCH I WAS SO STUMPED

Edit: IT LITERALLY FIXED EVERYTHING IM SO DUMB TYSM YALL FOR YOUR HELP <333
lags if you use a parallel
Glad you got this solved!
Since it's solved I just wanted to take a sec to correct some understanding, in case you aren't completely certain about this.

Parallel events don't directly cause lag (well, not in that way).
Parallel events will loop indefinitely until you specify when they stop.
Additionally, without a wait frame inserted, they will loop their contents every frame.
More often than not, there is no reason to check or repeat information 60 times a second, and rightfully doing so may cause the game to lag.

If you have a parallel event that needs to constantly run in the background, consider using wait frames. The more wait frames, the more efficient it is, but the less often it will update the information.

Best of luck with your game make!
In the words of a great dev:
Praise be!
Glad you got this solved!
Since it's solved I just wanted to take a sec to correct some understanding, in case you aren't completely certain about this.

Parallel events don't directly cause lag (well, not in that way).
Parallel events will loop indefinitely until you specify when they stop.
Additionally, without a wait frame inserted, they will loop their contents every frame.
More often than not, there is no reason to check or repeat information 60 times a second, and rightfully doing so may cause the game to lag.

If you have a parallel event that needs to constantly run in the background, consider using wait frames. The more wait frames, the more efficient it is, but the less often it will update the information.

Best of luck with your game make!
In the words of a great dev:
Praise be!
This definitely explains parallels a bit more, thanks for this!
Parallel events don't directly cause lag (well, not in that way).
all parallels add to lag directly - it's just not detectable in the beginning because modern computers have enough resources to cover quite a bit of the demands for parallels.
so it's only the badly designed parallels that cause detectable lag quickly, and yes waits are one way to improve the parallels because the wait simply says "skip processing this event for X frames."

This definitely explains parallels a bit more, thanks for this!
If you are interested in more details about hpw parallels work, follow the link to "bughunting" in my signature. It is a bit on the theoretical side, but as you have realised in this very topic a parallel event can really complicate bughunting and that is why I explained them a bit more in that tutorial.
all parallels add to lag directly - it's just not detectable in the beginning because modern computers have enough resources to cover quite a bit of the demands for parallels.
That's a pretty weird way to describe it.

If the game engine/computer can handle processing everything demanded by a given common event within the 1 frame timespan, there is no lag.

What @TheAM-Dol was attempting to do was clear up what I've seen as a common misconception that just having events or just having any parallel events will cause lag - which the OP referenced in their first post with "how it lags if you use a parallel".

Saying "there's lag but it's not detectable" is, by definition, not lag. 😉

I understand what you're getting at, and I'm not saying it's not worth reading through your article, but it seems odd for you to present it as contrary to what @TheAM-Dol said.
OH MY GOD THIS WAS IT

It was a common event I tried (and failed) to figure out how to use to discard an item before I found the plugin, I completely forgot I even made it.

THANK YOU SO MUCH I WAS SO STUMPED

Edit: IT LITERALLY FIXED EVERYTHING IM SO DUMB TYSM YALL FOR YOUR HELP <33333

That was the first thing I said. Haha. Too bad you missed it. Although you have seen it, because we talked about me saying parallex instead of parallel. 😛

Good to see it was solved in the end.

Original thread: https://forums.rpgmakerweb.com/threads/autorun-making-things-really-slow.168512/