Optimizing an iphone app for 3G in landscape with opengl, camera, quartz

Posted by Joey on Stack Overflow See other posts from Stack Overflow or by Joey
Published on 2010-05-17T23:26:48Z Indexed on 2010/05/17 23:30 UTC
Read the original article Hit count: 242

Filed under:
|
|
|
|

I have an iphone app that basically uses the camera, an opengl layer, and UIViews (some drawing with Quartz). It runs ok on 3GS, but on the 3G it is unusable. Particularly, when I press a UIButton, it literally takes sometimes 10 seconds to register the press. Shark doesn't do me much good because it crashes when I try to profile even a tiny portion, and I've tried turning off some of the layers to see if they might be obvious contributors to the lag. I've noticed that turning off the camera really helps.

I'm wondering if anyone has any familiarity with this and might suggest some likely causes. I had issues with extreme slowdown from running my app in landscape mode and using transforms, so considered that might be a cause, but I'm wondering if hoping for a 3G to run something with all of the above elements is just not really possible considering the camera seems to really cost a lot.

The fact that the buttons are horribly delayed in their response makes me think there is something fundamental that I might be missing.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about optimization