Lag with Calling Common Event

I noticed when testing an event that when I removed "Call common event" the lag for messages disappeared. Can anyone please give some input as to why is that? 😅
the basic is simply that if you call a common event, all commands of that event have to be executed before the computer processes the next command after the call common event.

and that has nothing to do with messages by themselves.
that means that whatever you're doing in that common event or in the event that calls the common event is responsible for the lag, and we have to see those events to tell you what causes the lag.
The Comment Event that was being called in the event isn't needed anymore anyway. So with the Common Event removed in the Event solves my problem right?
You said the messages were being effected and lagging because of the Call Common Event in the event if I understood correctly?

I think you said before it doesn't matter how many messages are contained in one event? Or am I imaging things? (I think my brain is making up false memories..) That Rpg Maker MV should run smoothly whether you have 50 or 10,000 messages to be read.
the only things that can cause lag are bulk processes of lots of things.
a call to an update function containing lots of sub objects such as map events, or several nested conditionals, could cause lag.... sometimes because the interpreter has to skip ahead to find the end of the block it's reading, to process the whole thing at once, and if that end point is several jumps ahead through other blocks which themselves are nested, it will take a while.
Does bulk processes include messages? I removed the call common event as it's not needed anymore. I should be fine now, right?
I'm not sure, because a bulk of messages is processed one by one, stopping the interpreter.
if the display of messages causes lag, probably the problem is the message itself, not the process calling them.
I'm not using the Common Event anymore. To clarify, now I am talking about an event on a map. Is there a limit to what you put inside an Event Editor?

This event I'm working on has a ton of messages. So I'll feel better knowing if tons of messages aren't a problem. 😅 The event worked fine the moment I removed the Call Common Event from the Editor.

But now I am wondering if there is such a thing as too many messages? That would stink if I found that out later and not now...o-o;
no single command alone will ever has ever caused any lag. That includes the call common event command.

what causes lag is a wrong combination of loops or parallel processes with commands that are badly entered.
you would have to show us the entire event before we can even guess which part of it caused the lag you experienced, because your assumptions on the cause of lag is completely wrong.

For example a thousand message commands on action button events will never cause any problems.
But a single message command on a parallel process done wrong can lag the best computer to hell.
Just to clarify, a Call Common Event command will not cause lag. If you had lag when you had the command, and you don't have lag when you don't have the command, then it's what you had in the common event that caused it.

Common events and map events execute the commands one by one, and will not move onto the next one until the last one is finished. So having any kind of wait or loop in the common event would have made it take longer to resume the commands in the event that called it. If you had a heap of messages in the common event, then you should have seen those appear on screen. If you don't need it, don't use it, but having it was not the cause of your lag, and putting the same commands into a map event does not change things. If that's what you've done, and it DID change things, then there is something slightly different between the map event and the common event. To know, you would have to provide screenshots of each so we can see what's happening, as you're not giving us any information to go on. I suspect though that you don't really care about that at this point.

As to limits, I don't really know. Maybe it's limited by how much memory you have. Event commands don't take up much memory. I suspect you could have hundreds, if not thousands of text messages in a single event, and I doubt you would ever reach that many - at some point you need to let the player ... play, right?
That Common Event was a work in progress, something I was fiddling around with. And I had recently changed it to parallel process instead of none. I'm thinking that is why. (I just remembered I changed it from none to parallel)

I didn't think there was a need to post the Common Event because I will not be using it the way I originally intended, thus removing it from the Event Editor.

As for the tons of messages, I'm crazy enough to give lots of possible things to read. I'm using variables to randomly choose a message from 1-10. It's adding up fast so I was kinda wondering. ^^;

I don't care too much about the Common Event, just wanted to confirm that Event Messages inside an Event Editor will never cause lag.
And I had recently changed it to parallel process instead of none. I'm thinking that is why.
yes, that is.

NEVER call a common event that is set to parallel. there is a reason why setting the common event to parallel activates a switch option: that switch should be used to activate or deactivate the parallel process common event, it should never be called.
The Common Event was originally set to none and was in the Event Editor before I had changed it to Parallel Process. 😅 I didn't remember that at first though...

So I started hunting to find out why. I do have lots of random messages to read. (The event, not the Common Event) I obviously don't have 10,000 random messages but I wanted to ask just in case. That there wasn't a limit on random messages.
So with your messages, if you have a LOT of them, and lots of conditions, jump to labels, etc, you might see it slow down a bit if it has to do a lot of tests before it reaches the lower messages. But I think you'd have to have a massive amount before it causes any issues.
So with your messages, if you have a LOT of them, and lots of conditions, jump to labels, etc, you might see it slow down a bit if it has to do a lot of tests before it reaches the lower messages. But I think you'd have to have a massive amount before it causes any issues.

It's mostly random 1-10 with some of it depending on variables. Like, if the hour is 0 -12 then they say these 1-10 messages. I put in a lot of variety and detail because I'm insane and I enjoy it and I'm having fun with it, regardless what anyone thinks. 😀
(I think it's easily gotten to 400... 😅 )

So the player won't sit there and read 10 messages in a row but just one or two depending which number hits randomly 1-10.

I think I saw a label in my event that I was using several months ago but it's going to disappear. As I change some of my events are being re looked at and re done.

Original thread: https://forums.rpgmakerweb.com/threads/lag-with-calling-common-event.133113/