MV Maximum size of maps before lag is a concern

Forgive me if I've already asked this or it's been asked a lot, or if it's in the wrong place. My bad.

But I'm wondering about pushing the limits of the map size for my specific game design. I know, I know, you don't need to, and lots of detail in a small space (or larger areas being broken up into pieces) is better. But I think my specific game may need larger maps. I also intend to use parallax mapping/doodads, pictures and possibly a lot of events. Probably not hundreds of events on a map, but a lot.

I tested the largest possible map 256x256 without any doodads, just basic tileset, and just the player as the only event. It doesn't lag for me, maybe because I have a decent laptop. That being said, I've read that doing things like parallax mapping or doodads, or having lots of events, will definitely cause some issues for a map that size.

What is the largest map size you recommend to keep issues to a minimum? I made a "fancy" map 150x150 and it seems to work okay. Maybe that's the biggest? Any advice appreciated, thank you for reading.
What really costs performance are unnesseccary map refreshs. This is why I made some tiny plugin that counts how often the map refreshs, usually do to Switch or Variable OPs in the background. When the counter sky-rockets, then there's probably something wrong on your map.

https://downloads.aerosys.blog/plugins/MK_MapRefreshCounter.js (right-click, save as...)
What really costs performance are unnesseccary map refreshs. This is why I made some tiny plugin that counts how often the map refreshs, usually do to Switch or Variable OPs in the background. When the counter sky-rockets, then there's probably something wrong on your map.

https://downloads.aerosys.blog/plugins/MK_MapRefreshCounter.js (right-click, save as...)

thank you for the information, I never heard of map refresh.

I get this error using your plugin:
TypeError: (intermediate value).textSizeEx is not a function YEP_CoreEngine.js:1098 TypeError: (intermediate value).textSizeEx is not a function
at Scene_Map.createAllWindows (MK_MapRefreshCounter.js:60)
it seems to be a function in MZ though, so not MV, so it should be added
to return textSizeEx or replaced somehow to work in there.

I don't know the plugin either.
Unless you want to deploy to mobile (with their much more limited capacities), there is no way a tilebased map can cause problems (VXA was able to handle 500x500 tile maps as long as there were no excessive events on those maps with computers that were average fifteen years ago).

The problem begins with parallax mapping. If using tile-based mapping, then each layer of each tile has a single number to determine which tile of the tileset is placed there. Call it two bytes per layer or eight byte per tile (to allow for region ID and a few more options).

on parallax mapping, you have usually less layers but each pixel in each tile-equivalent area needs a full color information, usually 3 bytes (with 24-bit-RPG color depth). and each tile has 48x48 pixel, with no duplicates due to not using tiles.
That means 6912 bytes per tile if using parallax mapping. With usually two layers (above and below player) that is roughly one or two thousand times the RAM-Requirement for holding a tile-based map of the same size (you cannot have partial maps or compressed data while using the map).

The quickest way to check how much RAM a background picture of a parallax map needs is to store it as a BMP as BMP has no compression and is the same size on HDD and in RAM.

A few years ago I estimated that anything at or beyond a 200x200 tile map would need a top-of-line desktop computer to handle it. Today that is probably more med-to-high class instead of top-of-line.

however a single badly structured parallel event will still be able to lag even a top computer, although those have enough reserves that the event needs to be very badly structured to cause lag.
But those events can be optimised to reduce lag...
The problem begins with parallax mapping.

I appreciate all the information you've given me thank you.

Do you think using only Yanfly's Doodads to illustrate a map 200x200 or bigger will be as problematic as parallaxing? Doodads stores the data in a different way I think. A video I watched made the claim that Doodads is good for large maps, though they didn't define "large." I've tested a 256x256 map with doodads and about 20 moving (not parallel) events and I can't quite tell if it's perfectly fine or a little too slow. It's playable at least on my high end computer.

I am also considering making many smaller maps that connect to each other and parallaxing, but I haven't committed to either way yet.

however a single badly structured parallel event will still be able to lag even a top computer, although those have enough reserves that the event needs to be very badly structured to cause lag.
But those events can be optimised to reduce lag...
Do you have any tips for optimizing parallel events or what a badly structured one looks like? I don't think I'll have too many but it'd be helpful to know.
1)
Yes, doodads are stored in a different way and you can use quite a number of them without problems.
I don't have the mathematics ready to calculate them, but basically they work similar to tiles without the limits on size and positioning.
which means that unless you use extremely large or hundreds of different doodads in a single map you should be fine.

2)
the key to optimising parallel events is the wait command.
internally the wait command simply says "skip processing this event for x loops/frames of the main game loop.
that allows you to specify how often the parallel is processed during the sixty frames of a second.

the higher the wait the less lag from the event, but the greater the delay on checking whatever it is supposed to do.
however the optimal wait can only be determined by experimenting since it depends not only on what the event is supposed to do, but on how many parallel events are working on the same time.
movement checks for example work best with wait(5) or wait (10) or so as a move takes time. A wait(20) is a third of a second and might be too much for an action/speed based game but still usable for a story/casual game.

Wow thanks for informing me that was very helpful. I'm not sure whether or not my doodads would reach hundreds, and they're not large, but I can easily see a couple hundred if I go in detail. A forest would have more than an indoor scene. For example I have an outdoor scene on a small map that has 204 doodads. (scarily that's putting my estimate for a large map at so much more) So maybe I will not make my maps over 200x200.

I do recall something about making sure parallel events have a wait command somewhere in them!

Original thread: https://forums.rpgmakerweb.com/threads/maximum-size-of-maps-before-lag-is-a-concern.183651/