Making a parallax into a tileset

Hi, I'm new to RPG maker and the forums. Haven't been able to find an answer to this question:

I want to use parallax mapping, but heard it uses more RAM. Couldn't I make a parallax map, pop it into RPG maker, then split that parallax map into 48x48 tiles and just put the new tileset back together like a puzzle?

I know it would limit editing, but I'm thinking more as a lighter version of a finished game.

Is this viable? Thanks
parallax gives you more possibilities and does increase memory.
but making them to a tileset is simply no possible.

reason for that is, that each tile can be unique and you have C D E to cover
with those, and parallax can use multiple layers.

some make the run faster using pixi filters, which also allows you with
many layers without the use of much memory.

otherwise, use tilesets only and no parallax.
the difference is how a tiled map is stored as opposed to how a full map picture is stored.

The following is a bit simplified:

in a tiled map, each map tile is stored as a single number for 48x48 pixel, and the tile storage itself is outside the map. This means that each block of 48x48 pixels is stored in 1 number per layer (3 for MV) - usually six bytes total. Plus the storage for thze tileset itself.

In a picture map, each pixel is stored independently in at minimum 3 color values. This is three bytes per pixel per layer (ground and upper layer, rarely a light layer) - which means either six or nine bytes PER PIXEL. And a tile has 48x48 = 2304 pixel, but no tileset overhead.

The tileset overhead means that for small maps where every tile is used once the memory is basically identical.
But for larger maps where tiles from a tileset can be repeated dozens of times, the parallax map that stores each pixel individually requires about four thausend times the RAM of a tiled map.

Splitting a parallax map into a tileset does not reduce the required RAM until the same tile can be used multiple times in the same map.
the difference is how a tiled map is stored as opposed to how a full map picture is stored.

The following is a bit simplified:

in a tiled map, each map tile is stored as a single number for 48x48 pixel, and the tile storage itself is outside the map. This means that each block of 48x48 pixels is stored in 1 number per layer (3 for MV) - usually six bytes total. Plus the storage for thze tileset itself.

In a picture map, each pixel is stored independently in at minimum 3 color values. This is three bytes per pixel per layer (ground and upper layer, rarely a light layer) - which means either six or nine bytes PER PIXEL. And a tile has 48x48 = 2304 pixel, but no tileset overhead.

The tileset overhead means that for small maps where every tile is used once the memory is basically identical.
But for larger maps where tiles from a tileset can be repeated dozens of times, the parallax map that stores each pixel individually requires about four thausend times the RAM of a tiled map.

Splitting a parallax map into a tileset does not reduce the required RAM until the same tile can be used multiple times in the same map.
Thanks, that's a very helpful explanation. What I'm getting from this is that it's possible, but only worthwhile if the map is large.

Good to know I can import a parallax as a tileset, thanks
parallax gives you more possibilities and does increase memory.
but making them to a tileset is simply no possible.

reason for that is, that each tile can be unique and you have C D E to cover
with those, and parallax can use multiple layers.

some make the run faster using pixi filters, which also allows you with
many layers without the use of much memory.

otherwise, use tilesets only and no parallax.
For the multiple layers, I'm thinking I could just leave the tiles in that area blank and use the parallax, then edit the parallax itself so it's fully transparent wherever I put tiles down.

So like a bit of both in places, but mostly tiles.

Thanks for letting me know abt pixi filters, I appreciate it
Thanks, that's a very helpful explanation. What I'm getting from this is that it's possible, but only worthwhile if the map is large.
I'm not sure how you came to that conclusion. It's actually the opposite.
To simplify the explanation further:
Tilesets are Ram efficient because each title only needs to be stored once, and then it just copies that stored tile to each place you - the developer - has assigned it.
So it's just copy-pasting the exact same item from Ram on to the map.

Meanwhile, a picture (your parallax map) is a...well...picture, so each pixel in that picture must be assigned a value. The reason this takes more Ram is each pixel is another small amount of data used up inside RAM
So even if you have a rock from your Tilesets here and that same rock over there, each one is treated as new data in RAM with a picture, where as with a Tilesets it's treated as the same data.
To put it simply, that is.

However, with that said, I wouldn't worry too much about the RAM usage. Can you open pictures from your pictures folder on your desktop? If they are at all in at least "HD" size or more, can you open 3 or more on your computer? If yes, then there's no problem.
Pictures, though they do take more RAM than tiles, are still not huge memory hogs.
The one thing you have to contend with is that RM games are 32bit, which means they are limited to a maximum of 4gb of RAM - even if your system has more installed, the software itself cannot utilize more than those 4.
But as long as your maps aren't obscenely massive, and you aren't also doing tons of additional "show pictures" on top of those obscenely massive maps, you should be okay.

Be mindful of the limitation, don't create obscenely large maps that use parallax maps, and there won't be any problem. Even if you do use obscenely large maps, I'd still wager you'd be okay. But better safe than sorry.
For the multiple layers, I'm thinking I could just leave the tiles in that area blank and use the parallax, then edit the parallax itself so it's fully transparent wherever I put tiles down.
That doesn't matter - as Andar explained, it's the raw image data of the parallax that takes up space. And the raw data will have information on what color each pixel is, even if it's transparent.

So if you're using a parallax layer anyway, that's pointless.

(in fact, having any transparency makes PNG files automatically larger, as they need to be in RBGA format at that point)
Meanwhile, a picture (your parallax map) is a...well...picture, so each pixel in that picture must be assigned a value. The reason this takes more Ram is each pixel is another small amount of data used up inside RAM
So even if you have a rock from your Tilesets here and that same rock over there, each one is treated as new data in RAM with a picture, where as with a Tilesets it's treated as the same data.
I don't want to use a parallax map. I'm talking about this:
1. Making a parallax map
2. Splitting the image with photoshop into 48x48 tiles (so each image is 48x48px each)
3. Importing those 48x48px images into rpgmaker mv as a tileset
4. Putting the parallax map into rpg maker
5. Using that parallax map as a guide to put down the tileset correctly, like puzzle pieces
6. Getting rid of the parallax and using the tileset

Now that I'm writing it down, I don't think I was clear enough in my original message. Sorry about that!

I thought a transparent parallax might be assigned differently, but now I know, so yeah this wouldn't include layering. Just a straight up tileset.
That doesn't matter - as Andar explained, it's the raw image data of the parallax that takes up space. And the raw data will have information on what color each pixel is, even if it's transparent.

So if you're using a parallax layer anyway, that's pointless.

(in fact, having any transparency makes PNG files automatically larger, as they need to be in RBGA format at that point)
That's very helpful, thank you
In that case, yeah no layering then
inb4mods:
Don't double post, just click the edit post button if you have more to say.

I understand what you are saying. I was clarifying what Andar was saying. Then I also clarified that RAM usage is not something you should really worry about.

The thing is, that is a huge hassle for...very low pay off. (see edit)
Here's the deal you have tilesets A - E, 5 pages.
Each page can contain 256 unique tiles equaling 1280 tiles...except kind of not really because of how the A tileset works. But let's go ahead and be generous and say 1280.
A 100x100 tile map is 10,000 tiles, so you don't have nearly enough space in your tileset to do that.
Going down to 50x50 is 2500 - still too much. You'd need to go all the way down to maps at 35x35 to actually fit all the parallax tiles on a single tilesheet.

And all of that is for a single layer. You have your ground layer (the layer the player walks on), the layer the player moves through, and then the foreground layer which would be things that are above the player.
It just doesn't make sense to do the method you have described, and again, to reiterate my point; just make sensibly sized maps and do normal parallaxing, instead of creating extra work and headache for yourself. There are a ton of games that use this method that have no issues with RAM utilization.
Does it take more RAM? Yes. Is it likely to cause problems? No.

edit:
also, your method will utilize the same amount of RAM anyways.
A PNG is a PNG, whether it's bound to the map or just loaded into RAM to copy-paste items from it.

Basically, if you have 1680x1680 pixel image (the same size as a 35x35 map) that is going to utilize the same amount of ram as 5 separate PNG's of 336x336 pixels. The reason tilesets are more RAM efficient is because it is copying data off the PNG loaded into RAM and placing at an indexed location.
As I explained before, an image needs to save every individual pixel's location, But if the 5 tileset PNGs equal the same size of parallax PNG then the RAM usage will be nearly identical (technically not true, since the map stores the index location of each placed tile, but we are talking on the orders of kilobytes, so the overall additional usage is negligible)

Original thread: https://forums.rpgmakerweb.com/threads/making-a-parallax-into-a-tileset.161154/