Skip to main content
Inspiring
January 4, 2016
Question

Custom resolution on Android and iOS (feature request?)

  • January 4, 2016
  • 1 reply
  • 572 views

Hi,

To be able to make sharp bitmap games with high frame rate I would love to be able to set my own resolution on Android and iOS games. That way I wouldn't have to scale up bitmaps 4 to 8 times to keep them from getting blurred which really kills the performance.

I haven't found a feature request for this. Would anyone else be interested or are their other alternatives?

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
January 4, 2016

There are easy ways to get what you want. One way is to have your bitmaps scaled to 50%, on a non Retina sized stage. For non Retina devices, they get the 50% version, but on Retina the quality of the original 100% version gets revealed. The AIR playback engine will take care of that.

If you want to save a little bit of memory on older devices, one trick would be to have two frames in each symbol, with two versions of the bitmap. On lower resolution devices you show the less detailed bitmap. I've had to do that in the past to get the first generation iPad to be able to cope, and yet still have good looking bitmaps for the Retina iPads.

You could do that at a movieclip level too, and have two copies of the same library symbols, and use code to load the one that matches the device resolution.

KarlCfsAuthor
Inspiring
January 4, 2016

Thanks for the suggestions Colin but I'm afraid that will not work for my project.

I am making a pixel styled platform game (similar style to this game) and as you can see the all graphics are quite tiny in original size and scaled up. With high resolution screens the graphics the bitmaps needs to be scaled up about 4 to 8 times, and since scaled bitmaps get really blurry the only solution to keep the pixel details is to scale up the bitmapData. With large levels and several layers for parallax scrolling the size of all bitmaps quickly becomes a performance killer.

The "normal resolution" setting on iOS helps a bit since I can cut the scale up in half but unfortunately there is no such thing on Android.

If I instead could set a custom resolution of the screen I could keep all graphics in original size and still get the same sharp graphics and that would save so much memory and cpu/gpu!