Tuesday 15 June 2010

iPhone 3GS OpenGL strange bug -


I am developing a 2D game for iPhone and iPod Touch using OpenGL ES 1.1 Everything works well on the iPhone, iPhone 3G and all iPod Touch models. This game usually offers views at ~ 60 fps.

This is also on iPhone 3 GS, but sometimes (it is completely random) 3GS framerate goes up to 40 fps and the animation seems choppy. This also happens when the user locks the phone and starts it with sleep mode.

I think it's been with NSTimer for a while, because if I change the Draw trigger mode in the new CADisplayLink class available from SDK 3.1, everything is fine on all devices. Also on 3GS

I do not know how to resolve this issue and I do not want to post my app with the 3.1+ restriction. There are still many users with 3.0 devices.

Is this problem with iPhone 3G? If so, please help me with a workaround.

Thank you!

You can use both libraries and get the best results on either 3.0 or 3.1 devices Are there. After the iPhone OS minimum version it will be okay to use the appstore that your application information is contained in the playlist file.

The iPhone OS version is reusable using Apple's following code:

  Float iPhoneOS warson = [[[UIDICE Diasdive] SystemWarson] float value]; If (iPhone Oscars> gt; = 3.1) {useNewerFramework (); } Else {uselderFramework (); }  

However, you should also make sure that you want to set your Deployment Target to Xcode 3.0 or the minimum minimum version that you want to run.


No comments:

Post a Comment