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.
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...
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.