Speed on iPhone

Monkey Forums/Monkey Programming/Speed on iPhone

zoqfotpik(Posted 2014) [#1]
Just a note for anyone having performance trouble on mobile devices. I was unable to get acceptable speed on the iPhone at draw resolutions of 48x48, even though the screen was pixel-doubled in size and only 10x10 tiles in size, with a scrolled image for a background.

I halved the size of the sprites and tiles to 24x24 and doubled the size of the scaling on the pixel-doubling phase and now I'm getting much better framerates. In fact the game runs too fast.

It's just interesting that the graphics appear to be fill-rate limited and not limited by the number of calls. But strangely, I have a visual effect composed of 128 8x480 sprites which is buttery smooth on the same device with no pixel doubling. If I was a Real Programmer I would understand why this was happening.