how big can you make a map before it gets too laggy to be worth it?

i want to be economical with my map usage so that i dont have to worry about running out of maps, so i want to group areas that use the same tilesets together. obviously if i wanted to be ultra-efficient with map numbers i could just put everything on 500x500 maps, but that could lead to lag or crashes. so i just wanted to ask what a good set of dimensions would be for making multiple areas on the same map? for example, if i wanted to fit all the rooms of a large dungeon in as few maps as possible without crashing the game. or are there scripts that could mitigate the 'weight' of large maps?
the map size of a tiles map doesn't matter for lag, only a parallax background counts if you use that.

What counts for lag is the events on that map - and larger maps obviously have more events.

and then it is what those events do.
Pure decorative, non-moving events you can have in the hundreds (or thousands if you got a modern computer)
autonomous movement events (which stop being processed outside player view exactly due to lag problems) are a bit more, but as said they stop being processed outside a certzain range. So you could count them as double or triple of a decorative event.

Parallel process events are the worst, especially if you don't know how to use waits with them.
They also depend on their logic - a single badly written parallel process can lag even the most modern computer, but if you know how to use parallels then one or two dozen parallels should be possible.
Is a big map ever worth it?
if it is csrefully planned and well executed, yes.
although I have to admit that most people fail in filling such a map correctly, making it a boring walking exercide. And no, exessive encounters are not an interesting way to fill a map.

Original thread: https://forums.rpgmakerweb.com/threads/how-big-can-you-make-a-map-before-it-gets-too-laggy-to-be-worth-it.169315/