Skip to main content
March 10, 2012
Question

differences between 3gs and 4 iPhone

  • March 10, 2012
  • 2 replies
  • 719 views

I've done a game and I compile it with the packager into the 3.2 AIR, it work fine on iPhone 3Gs (iOs 5.0.1) and it is smooth, but it on iPhone 4 (iOs 4.3.2) the game every 4-5 level it snapes, independently from how many sprite's showed! Though the image's done at 480x320 screen resolution and not at 960x640 like iPhone 4, Do this would to be an advise for the iPhone 4?

Why my game don't smooth well on iPhone 4? And I repeat "independently from how many sprite's showed". Can the GC to be a reason? I run means the code the gs only when the game come back to the home game.

thanks

This topic has been closed for replies.

2 replies

Inspiring
March 10, 2012

You could try, just to test; stage.quality = StageQuality.LOW

It gave my game 10fps extra, and I couldn't see any difference regarding the quality of the game.

sinious
Legend
March 10, 2012

StageQuality.LOW will not affect bitmaps at all which will probably help you. This only affects rendered elements such as vectors (like dynamic text).

Regardless you should be targeting 240dpi for phones. Make sure you are.

March 10, 2012

I add that the game's compilated with the tag

<renderMode>cpu</renderMode>

into app.xml

Do exist a mode for to bypass this problem?

Colin Holgate
Inspiring
March 10, 2012

What do you have set for requestedDisplayResolution? If it's "high", then the iPhone 4 is having to deal with four times as many pixels as the 3GS.

Also, try using "direct" for the rendermode, instead of "cpu". That should make it a lot smoother.