Events and Lagging

So I understand that the more events you have the laggier your game will be, but do all events slow the system down? Even action trigger events? 😳 I want to add detail to everything in my game but im afraid having 1000+ events (for descriptions upon action button trigger) might slow it down. Any advice in this regard?
It depends on what type of event.

One badly designed parallel process can cause significant lag.

100 well designed 'ordinary' events might well not.

As a general rule of thumb, it is not the total events in a game, but the total number of events on an individual map which needs to be taken into account.  The obvious exceptions will be parallel processes and common events that are set to run for the whole game.
I dont have any parallel process or common events that run for the whole game. I have like hundreds of action trigger events, maybe thousands. I have one giant 500x500 map with all of them on it though..well, they will be soon, unless I am told right off the bat that its a bad idea.
Lag can be caused by two different things:


1) parallel processes with complex or bad logic


2) the number of events to be processed on a single map


In the first case, that can cause a lot of lag if the even't logic is problematic - a single repeating event can stop your entire game. But usually this can be solved by careful placement of waits and logic redesigns.


The second case is what should guide you away from large maps with many events.


Every event on a map needs to be checked and processed on every frame step of the game, even if that is only a decorative event without any command.


If there are no commands, then that check is very fast - but a thousand fast checks still take some time.


There are no fixed rules because a fast computer can handle more processing than a slow one - on a slow PC, a few hundred decorative events can cause detectable lag, on a fast computer you might need a few thousand decorative events for the same.


Thousands of events on a single 500x500 map will make that map lag on almost any computer.


However, that is not the only reason to stay away from 500x500-maps: those maps are usually too big to be interesting to any player. Here's something you can do to see what I mean:


Make a new project with only the sample map "Field 1" (right-click on the maplist to load sample maps into the editor)


Place your actor and the ship next to each other on the map.


Then playtest and explore that map - without any events, just travelling around and looking at each country/island/continent/etc.


Check how long it will take you just to see every part of that map, without stopping for any event interaction.


That is a 140x140 map - your 500x500 map will have about twelve times the area to travel around. And filled with interaction events, that travel time will be a lot higher than without events/towns/etc to check.

Original thread: https://forums.rpgmakerweb.com/threads/events-and-lagging.24739/