Question regarding possible lag concerns:

Hello!


So in one of my main dungeons (a farm), I have a wheat event that is going to be very compact.
For context, the wheat event is this:

The Event is really a character with Above priority, so players can walk through them.
It is also a Player Touch event as well, so what happens is if the player runs through the character (wheat), the wheat will just turn a bit and make a single SE sound. That's it.

Screen Shot 2023-06-20 at 3.04.42 PM.png


If I were to fill in all of these dirt tiles with the wheat event (such as inside this square), is it possible that it would be too much for the engine?


I was just wondering...is this okay for the engine to handle? I realize this is a lot of events, but while I'm not experiencing anything on my game testing end, I wonder if this would be an issue for people with weaker/slower computers.

It's kind of the first time I'm running into an instance where I have tons of events on 1 map, and I was just wondering if anyone had any insight or advice on this sort of thing.
I realize this is a lot of events
The number of events is basically inconsequential. What matters is what they're doing and how often.

People experience lag when they have lots of events running in parallel with no wait commands, or trying to do intensive things like load graphics or audio.
Oh this is wonderful news then! Thank you ATT_Turan you're always a big help
I do want to add something to this; ATT is correct.
In game, there shouldn't be any problems if they are just player touch.
However, if you begin to reach excessively high number of events on a single map, the editor itself (not the game) may begin to act a little funny. Whenever placing a new event, the time it takes for the editor to process creating the new event will become more and more noticeable. At roughly 700+ events (depends on your computer), you'll begin to see all the events briefly blink out of existence for just a very brief moment before reappearing again with your newly added event.
However, of course, reaching such a high number is pretty difficult to do. However, not impossible, as I am telling you all this information from my own personal experience.
There is also the annoying way that whenever trying to use a move event command or move route command, the drop down list of events becomes unweildy.
I personally recommend making sure you set up all important events you will interact with on the map first, then once it has all been set up, fill in your fields with the less important events.
I do want to add something to this; ATT is correct.
In game, there shouldn't be any problems if they are just player touch.
However, if you begin to reach excessively high number of events on a single map, the editor itself (not the game) may begin to act a little funny. Whenever placing a new event, the time it takes for the editor to process creating the new event will become more and more noticeable. At roughly 700+ events (depends on your computer), you'll begin to see all the events briefly blink out of existence for just a very brief moment before reappearing again with your newly added event.
However, of course, reaching such a high number is pretty difficult to do. However, not impossible, as I am telling you all this information from my own personal experience.
There is also the annoying way that whenever trying to use a move event command or move route command, the drop down list of events becomes unweildy.
I personally recommend making sure you set up all important events you will interact with on the map first, then once it has all been set up, fill in your fields with the less important events.

Ahh, thanks for the insight! I'll keep it in mind.

Yeah, I've experienced what you're talking about too. Like when the editor acts all funky/distorts crazily sometimes, or the events all flash for a split second.
Another notable issue with tons of events is the size of the savefile - when saving the game, lots of data about every event on the current map is also saved (even if those events are very simple). This can affect the time it takes to save and the size of the savefile on disc. You might want to specifically test that once you set those events up.
Another notable issue with tons of events is the size of the savefile - when saving the game, lots of data about every event on the current map is also saved (even if those events are very simple). This can affect the time it takes to save and the size of the savefile on disc. You might want to specifically test that once you set those events up.

Oooh I did not even consider this. In my game, you can save anywhere you want, and there are also save spot events as well. Thank you for the insight!
Another notable issue with tons of events is the size of the savefile
Oooh I did not even consider this.
So I absolutely do not intend this to invalidate anything that Mac is advising.

But just as a very quick test, I made two maps - one has a handful of events that do my normal testing things, then the second had 300 events like you describe in your first post (have a Play SE command).

The save file went from 8 KB to a whopping 55 KB 😛

That implies that you'd need a map larger than MV supports with much more complex events than you describe to contribute even as much as a megabyte toward the size of your save. That seems negligible to me.
So I absolutely do not intend this to invalidate anything that Mac is advising.

But just as a very quick test, I made two maps - one has a handful of events that do my normal testing things, then the second had 300 events like you describe in your first post (have a Play SE command).

The save file went from 8 KB to a whopping 55 KB 😛

That implies that you'd need a map larger than MV supports with much more complex events than you describe to contribute even as much as a megabyte toward the size of your save. That seems negligible to me.

Oh wow, that is still quite the size :oops:
Well thankfully, I was only really concerned about having all these simple repeated events for this farm dungeon. I don't think this will be an issue in later places. I just wanted the crops to kind of have an aesthetic to them of being able to walk through them with that nice crisp crop sound.
Oh wow, that is still quite the size :oops:
...it...is?
Oh wow, that is still quite the size :oops:
No it isn't. Sure, 55 is a lot more than 8 just from a number perspective, but as a file size? It's trivial. You know how many kilobytes it takes to make 1 megabyte? 1000. 55 KB is nothing.
Oh no, I just meant like 55 KB is more than 8 KB, I know KB isn't that big of a deal. I was just astonished how much more the events can change something like that ahahaha xD I should have clarified.

I was kind of thinking at most the similar events would only add on a few more KB's.
Here is something entirely different to keep in mind:

Lag is additive through everything, and rarely caused by a single thing. A parallel process would need to be very bad for a single one to affect modern computers.

One of the biggest problems with identifying causes for lag is the fact that most modern computers are powerfull enough to have a certain "buffer" against lag, and only if you pass that buffer lag becomes detectable - but it would go bad very fast once that happened.

For example a large parallax map might use up 90% of the buffer - the game still works without lag.
Then you add three parallel processes each taking 4% of the buffer - which means you're at 102% and lag becomes visible.
But you'll be looking at the parallel processes for the solution because that is the last thing added, not at the parallax map that always before worked despite it being the big cause for the lag...

No, this was not at the specific problem of this topic, but should be mentioned as background info.
Here is something entirely different to keep in mind:

Lag is additive through everything, and rarely caused by a single thing. A parallel process would need to be very bad for a single one to affect modern computers.

One of the biggest problems with identifying causes for lag is the fact that most modern computers are powerfull enough to have a certain "buffer" against lag, and only if you pass that buffer lag becomes detectable - but it would go bad very fast once that happened.

For example a large parallax map might use up 90% of the buffer - the game still works without lag.
Then you add three parallel processes each taking 4% of the buffer - which means you're at 102% and lag becomes visible.
But you'll be looking at the parallel processes for the solution because that is the last thing added, not at the parallax map that always before worked despite it being the big cause for the lag...

No, this was not at the specific problem of this topic, but should be mentioned as background info.

Oh, hmm now you're making me wonder. I sometimes DO use parallax mapping, but I only really use it for custom shading techniques, and not the actual landscape/map collision itself.

When you say parallax map, do you mean the entire map is parallaxed/customized? Or does it not matter what I make on say a single shading layer?

I'm curious if a single layer can contribute either X amount of buffer, or the amount X can vary based on what's actually on the parallax layer itself.
Oh, hmm now you're making me wonder.
So I don't mean this in any kind of mean way. But it seems like you just don't know very much about this from the technical side (which is fine!), and you're allowing every stray comment and thought to create random concerns in your brain.

If you do a spot of Googling, you'll find support threads on here from people who have made poorly-constructed parallel events that caused lag. You'll find threads from people who are trying to use huge parallax maps that can't load into RAM and crash their games.

There's more detailed information in those threads pertaining to those specific issues. And none of them, prima facie, have anything to do with what you're doing in your game.

Unless you're actually experiencing performance problems or lag - and as far as I can tell from this thread, you're not - I don't understand why you're so concerned about it. There appears to be zero reason for you to be thinking/worried about anything on this page 🤣
So I don't mean this in any kind of mean way. But it seems like you just don't know very much about this from the technical side (which is fine!), and you're allowing every stray comment and thought to create random concerns in your brain.

If you do a spot of Googling, you'll find support threads on here from people who have made poorly-constructed parallel events that caused lag. You'll find threads from people who are trying to use huge parallax maps that can't load into RAM and crash their games.

There's more detailed information in those threads pertaining to those specific issues. And none of them, prima facie, have anything to do with what you're doing in your game.

Unless you're actually experiencing performance problems or lag - and as far as I can tell from this thread, you're not - I don't understand why you're so concerned about it. There appears to be zero reason for you to be thinking/worried about anything on this page 🤣

Ahaha, yeah no I'm not much of a tech person XD. I've always been an artist above all the other things required in game making. So I still gotta learn as I go, with everything I try to do.

I do like planning ahead, so I try to ask questions now before I move on yanno?

Original thread: https://forums.rpgmakerweb.com/threads/question-regarding-possible-lag-concerns.158526/