Information about parallax and its limitations

For my taste, RPG Maker MZ limits a lot when it comes to being able to make large maps and add a lot of content, since it limits the number of tilesets you can use on the map. At least for my taste, I would need to be able to use more.

I remember that in RPG Maker XP I used to join the tilesets into one and I could use them on the same map, but now it doesn't let me because it limits you to the real resolution that the tilesets have by default.

The only way to achieve what I want and it also provides the ability to make amazing maps is to use parallax.

I have tried the Visual Parallaxes VisuStella MZ plugin but just by having it activated even though I am not using it, the game on Android is unplayable due to the lag it has. Now I am using the MZPlus Parallaxes which works very well and zero lag on Android.

The problem I'm having, and I don't know if they are limitations of RPG Maker or the plugin, is that the most I can do are 80x80 maps, which are equivalent to 3840x3840 pixels.

The plugin for the use of Parallax requires that the images used be as large as the map, any image larger than the one mentioned causes the screen to go black on Android, although the game works and the menu of the items is visible. characters, but Parallax images are not rendered.

With 80x80 and Parallax maps of 3840x3840 pixels, the game on Android works perfectly without lag and I have vasstanjtes common parallel events and several different npc moving around the map to test.

But I want more, I want bigger maps.

I don't know if someone who knows about the subject can advise me and guide me or what plugins to use, anything.

I have already seen in the forum some messages related to this topic, but they talk about much lower resolutions and smaller maps.

Hope someone can help me.
The problem is always the RAM - and especially with the low RAM available on most mobiles it is a wonder that you got an 80x80 parallax working - it will NOT work if you switch to a low-end mobile devices.

Parallax mapping requires several thousand times the RAM of tiled mapping, because you have to store the color of each pixel instead of only one number for the tile-ID of an entire 48x48 pixel block.

But the tilesets were limited for the same reason - a lot of RMXP games used too big tilesets that had everything including the editor lagging to hell due to the RAM requirement of keeping the entire tileset loaded.

The only way around your problems is to split up the map and use smaller maps, either for smaller parallaxes or for giving each smaller map different tilesets than keeping the same tiles for the large area.

And that is a technical limitation that has nothing to do with the RPG-Makers. There is absolutely no game engine (not even for or from professional AAA-Games) that does not split the map somewhere.

There are only engines that hide the map-split better than it is hidden by the RMs, and you can try to do the same by working on the map transfer to hide that you're changing maps.
The problem is always the RAM - and especially with the low RAM available on most mobiles it is a wonder that you got an 80x80 parallax working - it will NOT work if you switch to a low-end mobile devices.

Parallax mapping requires several thousand times the RAM of tiled mapping, because you have to store the color of each pixel instead of only one number for the tile-ID of an entire 48x48 pixel block.

But the tilesets were limited for the same reason - a lot of RMXP games used too big tilesets that had everything including the editor lagging to hell due to the RAM requirement of keeping the entire tileset loaded.

The only way around your problems is to split up the map and use smaller maps, either for smaller parallaxes or for giving each smaller map different tilesets than keeping the same tiles for the large area.

And that is a technical limitation that has nothing to do with the RPG-Makers. There is absolutely no game engine (not even for or from professional AAA-Games) that does not split the map somewhere.

There are only engines that hide the map-split better than it is hidden by the RMs, and you can try to do the same by working on the map transfer to hide that you're changing maps.
The tablet I use is low-end with 4 gigs of ram.

Before testing the game, I optimize the textures, an original texture has a size of 28.8Mb and when I optimize it it becomes 5.87Mb.

Tried 3840x3840 resolution with 3 images for the parallax. One image for the background, another for the top, and the last one for the shading. Everything works fine whether using the unoptimized images of 28.8Mb or so each, making an approximate value of 80MB. The optimized images weigh about 5.87Mb more or less each, making a total of approximately 15Mb.

The game does not care if the images are optimized or not, if they weigh a total of 80MB or 15MB, as long as it is a 3840x3840 resolution everything is perfect.

As soon as I go to 4080x4080, it does not matter if the total of the images in this resolution will have a size of 17MB or 88MB, they will not work, the background will be black.

If it were a question of the size in megabytes that each image has, if the game can handle unoptimized images that weigh a total of 80MB, it has to be able to handle images that are optimized and weigh less by about 17MB even though they are of higher resolution.

I have tried with 3 images created with Paint, they only have the green color in the whole image and weigh 76.4 KB without optimization, optimized they weigh 2.91 KB in total less than 8.73KB and still see black.

For this reason, I think it is a matter of image resolution and not memory.
The game does not care if the images are optimized or not
Of course not - I already said that this is about RAM, not about storage filesize.
No game ever has cared anyway about storage compression as that only determines how much storage on the harddrive is needed when the game is NOT running.

But to work on or with any picture, it needs to be uncompressed in RAM - and the uncompressed size is always the same, it does not matter how much you compress data for file storage.

To test the true size of any image in RAM, save it as BMP. BMP has absolutely no compression, so that is what is needed as RAM-Size, no matter how much you optimize it for harddrive storage.
And that is the same no matter if you use a single color paint or a complex photo, BMP and RAM only care about pixel size and color depth (and the color depth depents on the display settings, not the color numbers you set for your image)
80x80 tiles seems quite big for a map. Have you considered making smaller maps?

Like Andar said, compression does not affect RAM or VRAM usage. (It can slightly affect load time, i.e. the Disk -> RAM transfer, but that shouldn't be a big deal here.)

Regarding resolution: the GPU will have a maximum texture size that it can process. For mobile, I think the safe limit (at the moment) is 2048x2048 px? Perhaps your device handles up to 4096 ("4k"). You may be able to solve the problem by subdividing the parallax into chunks:
  • With the tools available, e.g. if "MZPlus Parallaxes" allows multiple layers side-by-side; or
  • With another plugin/add-on, e.g. multiple sprites of the same image but with different frames.
Why don't you connect several maps together using a Zelda-style sliding map transition?

It's not precisely seamless, but it's also not a full black out. You can find techniques and plugins for it if you Google.
Of course not - I already said that this is about RAM, not about storage filesize.
No game ever has cared anyway about storage compression as that only determines how much storage on the harddrive is needed when the game is NOT running.

But to work on or with any picture, it needs to be uncompressed in RAM - and the uncompressed size is always the same, it does not matter how much you compress data for file storage.

To test the true size of any image in RAM, save it as BMP. BMP has absolutely no compression, so that is what is needed as RAM-Size, no matter how much you optimize it for harddrive storage.
And that is the same no matter if you use a single color paint or a complex photo, BMP and RAM only care about pixel size and color depth (and the color depth depents on the display settings, not the color numbers you set for your image)
It was not clear to me in your previous message, now I understand what you mean.

I had no idea the truth, you always learn something. Thank you so much!!!!!

Basically, optimizing the image serves to "summarize it and take up less memory and give it more communication speed between RAM, CPU, GPU" but in the end the final information is the same and is measured in the total number of pixels it has.

Good to know.

80x80 tiles seems quite big for a map. Have you considered making smaller maps?

Like Andar said, compression does not affect RAM or VRAM usage. (It can slightly affect load time, i.e. the Disk -> RAM transfer, but that shouldn't be a big deal here.)

Regarding resolution: the GPU will have a maximum texture size that it can process. For mobile, I think the safe limit (at the moment) is 2048x2048 px? Perhaps your device handles up to 4096 ("4k"). You may be able to solve the problem by subdividing the parallax into chunks:
  • With the tools available, e.g. if "MZPlus Parallaxes" allows multiple layers side-by-side; or
  • With another plugin/add-on, e.g. multiple sprites of the same image but with different frames.


That's what I'm trying to find, a plugin that lets me select the parallax in parts in each area of the map.

For example, an 80x80 map that is 3840x3840 pixels, divide those 3840x3840pixels into sections and have them load and unload as the player approaches or moves away from an area of the map.

I bought the Visual Parallaxes VisuStella MZ plugin, and although it doesn't load any parallax, just because the plugin is activated the game on Android goes very badly.

I bought the MZPlus Parallaxes plugin you mention and it's the one I was using, but this asks you to make the parallax the same as the map, if it has an effect for water and depending on which areas of the map, it lets you decide its X and Y position even stretch a small image to a resolution that you want. But what is the map itself, those images go in their corresponding folders, I don't see anything that is by parts or areas.

I need help from a plugin that does load the parallax in parts.

Why don't you connect several maps together using a Zelda-style sliding map transition?

It's not precisely seamless, but it's also not a full black out. You can find techniques and plugins for it if you Google.
It's not something I want to do, but if I see that I can't find a solution, I'll have no choice but to do small maps and use the teleportation method to another map when the character reaches its limits. But I hate that.

I hope to find a plugin or that someone knows of one that loads the parallax by areas of the map.
After several tests I am going to stop trying to enlarge the maps for parallax, because it is impossible.

It would be nice to be able to divide the map into parts and assign each one its own parallax image, which are loaded into memory as you get closer and others are removed from memory, which does not load everything directly with the map. But since there is nothing that does this and I don't know how to program, I have to stay with the alternatives that exist.

I have tried on different low-end devices and everything works fine.

Maximum 80x80 map with parallax images of 3840x3840 pixels and with the MZPlusPrimeParallax plugin. This plugin is able to put these “groundMap”, “lightMap”, “parallaxMap”, “reflectionMap” and “shadowMap” layers apart from other fog or water effects.

All images have to be 3840x3840 pixels otherwise open areas of the map that do not have shadows or other layers.

In total there are 5 Layers, plus the normal Parallax layer of RPG Maker, I suppose that this layer is put on more than anything temporary to place you on the map in RPG Maker because if I remove it I don't notice a difference later.

I have exported an 80x80 map to Android as a test with 5 3840x3840 pixel images plus a normal Paralax one as you mentioned before, also a water effect on a part of the map that uses a 256x256 image and you can enlarge it to the size you want with the plugin options and put it in the position you want on the map while it animates by moving to simulate water.

He put several npc in motion with different characters.

It turns out that everything is perfectly fine 0 Problems. If it is true that when you open the map, everything is black until you fully load the map, this takes 7 seconds on the device with less adware power and 4 seconds on the device with more adware power. But this is the loading time on this type of map, the game works fine on both equally.

There is no reason to use so many layers, only the ones you want to use.

It seems strange to me that, if I only want to use a Parallax layer on a 85x85 map with an image of 4080x4080 pixels, on a map without events or anything, the game can't handle this and all the parallax is seen black, well, if seven come But with no 5 3840x3840 layers anymore, if there are no 6 and more events added on the map, everything works fine.

This makes me understand that apart from the RAM issue, there are limitations or problems with the size of images greater than 3840x3840 pixels, or at least on Android. Well, in Windows I have no problem.

Well 80x80 although it is not what I wanted, it is not small either.


Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/information-about-parallax-and-its-limitations.156480/