Graphics & memory management

(Forgive me if this is the wrong forum!)

With the new ability to put RPGM games on mobile, I'm curious how people are approaching their maps and graphics so they can reduce lag and keep file sizes as small as possible, especially if you want to do parallax mapping.

So, with parallax mapping, you basically have several image layers the size of your map placed over top of each other that would greatly increase the amount loaded into memory. The amount and size of layers, plus slight bloat because PNGs are needed for transparency seems like it would induce lag much faster than a similar tileset based map... but tilesets aren't always ideal for creating good looking visuals.

Is anyone here working on/planning a game for mobile? How are you approaching this potential issue (or non-issue)?

(I was reading a bit about designing graphics for mobile and stumbled across this article which got me thinking.)
If you are going into mobile, then you may well have to ditch the idea of using parallaxes.  An ordinary map will come in well under 100Kb; a parallax map will be anything between 1Mb to 5Mb, easily, and larger maps, I assume can go even higher.  Even if you have only 50 maps (which is tiny) you are already into big file sizes - and a lot of people have data limits (per day/per month etc) so your game would have to be pretty enticing before they would even consider it.  And a skilled mapper can produce good looking maps in the editor.  I have seen parallaxed games which, frankly, looked awful.
It's called targeting higher end phones. Also, I've exported what I have of my game which is parallaxed, no lag on my iPhone 6s+. And I have a 125x200 map in my game with tons of events.
I have been working on mobile games now with someone for going on a year and half now, and I will say this - the memory constraints are pretty much the biggest constraining factor to making a mobile game, and that is why the vast majority of mobile games are very small in scale and scope (think of games like Bejeweled, Two Dots, etc and think of the graphics they require).

The move to larger resources while simultaneously allowing mobile game creation is a very strange thing to do in tandum for RPG Maker because those two things are very much at odds with each other. When making mobile games, you have to go as small as you realistically can, and only use what you absolutely need to use, and even then some clever memory swapping managing would do you good.

The problem with targeting just high-end phones is that you are targeting a very small portion of potential customers (this is assuming you are trying to sell your game through one of the mobile app store fronts - if not, then disregard and do whatever you want); the general best practice in making games for public consumption is to try and make the game work flawlessly on low-end machines to make it as accessible as possible to as broad a range of people as possible.

With all that being said, you can actually get away with some fairly large images if you really want to when building mobile games, in terms of RAM useage anyway, can't speak for the willingness of people to use data to download larger game files. The game we are currently working on utilizes a fair number of 1024x1024 images for backgrounds (usually 2 or 3 of these are layered in a single scene), and most characters are in sheets that are 512x512, so about a dozen or so of those in the scene as well, and this sort of thing runs well enough on the iPhone 4 (with the AI and code running in the background), which is the target system for running the game smoothly. The guy heading the project made a rather clever texture swapper to save on RAM though which plays a big part in what we are doing, and without it the game simply would crash due to exceeding RAM limitations (which is what happened and prompted the need to create the texture and graphic swapper).
I'm not sure about how limiting the final file size is to data plans, since people could easily switch to wifi access and download it that way instead of over their data plan, but I guess if you can't get to wifi it would be a bigger deal. Food for thought.

The move to larger resources while simultaneously allowing mobile game creation is a very strange thing to do in tandum for RPG Maker because those two things are very much at odds with each other. When making mobile games, you have to go as small as you realistically can, and only use what you absolutely need to use, and even then some clever memory swapping managing would do you good.
I was a little confused by this too. If you want to be able to make more detailed maps, smaller tiles would be better, but I guess when accounting for fingers on a smaller screen larger tiles would make more sense cuz they'd be easier to tap.

Some graphical musings...: If mobile devices require images that are "power of two" (or divisible by 8, I guess) how does the upscaling work for the asset templates of RPGMMV? For instance, the iconset template is 512x608 which is divisible by 8, but both numbers are not a power of 2 (512 is, 608 is not). Are the images left as-is because they're divisible by 8? or do they get oddly upscaled? OR since the icons themselves are 48x48, do the icons get upscaled to 64x64 (since that's a power of 2) or are they left alone? If they are in fact upscaled, why did the tiles change from 32x32 to 48x48 when the former is a power of 2?

(...or maybe nothing happens at all and this is totally irrelevant to the RPGM mobile environment and I am totally over-thinking this, idk)

That aside, after some further reading I learned that since tilesets and parallax maps essentially have the same average draw counts in RPGM (and those are a huge memory suck), unless you're doing enormous maps with tons of layers and fancy effects, they're pretty comparable. Parallax would have a longer load-time when swapping maps, but it seems livable.

Also, this is about Unity and mobile, but I think the graphics tricks would apply to any engine. Super complicated compression techniques that may or may not be worth it, but someone here might benefit from this information.
If I were you I would make a bunch of quick and dirty parallax maps of reasonable size, place a bunch of actors with RTP sprites and try to package it to your phone or run it in Bluestacks to see how much memory is used.

I think touch was definitely a consideration in the tile size change. Mobile displays are getting larger and pixel density increasing. 48 pixels on today's smartphone is smaller than it was just 2 years ago.
I personally am not targeting mobile, but if I do it will be higher end apple phones 😀
Things may have changed, but certainly up until a year/18 months ago, the requirement by Apple was that any app had to be playable across all current models.  It was that factor which caused Degica's alpha port to mobile (my game, that's why I know) to fail to port to iOS; there was one model where it wouldn't work.  Therefore targeting only high end might not be an achievable objective.  Of course, as I said, things may have changed, but it's worth checking out first.

Original thread: https://forums.rpgmakerweb.com/threads/graphics-memory-management.50521/