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


I have an iPhone App, which originally had a camera, an open layer, and uvvs (some drawing with quartz) uses it. It runs fine on the 3GS, but it is useless on 3G. In particular, when I press a UIButton, it actually takes 10 seconds to register the press. The shark does not make me so good because it crashes when I try to profile a small part too, and I have tried to shut down some layers so that it is a clear contributor to the interval You can. I have seen that closing the camera really helps.

I am thinking that someone is acquainted with this and can suggest some possible reasons. My app has a lot of recession issues by running in landscape mode and using transforms, so it is believed that this may be a reason, but I am thinking that to do anything with all the above elements, 3G Expecting is not actually possible, the camera really costs a lot.

The fact is that the buttons are very delayed in their reply, I think there is something fundamental that I can not remember.

If it needs to answer 10 seconds, that means that your main thread Queuing is being done faster than the event is being processed. This is a very bad thing

There are several ways to deal with this depending on how you designed your application.

Comments