I am using CGBitmapContextRef for a large mutable image. Than I draw one part in UIView.drawRect. This works well on the iPhone 3GS - 17FPS. But on iPhone 4, calling the subj method is very slow - and the overall FPS is 1.5!
The profiler says: CGSBlendBGRA8888toRGBA8888 is called on 3GS, which takes 23% of the total time. on 4G, the same code calls argb32_sample_RGBA32 / argb32_image_mark, which takes ~ 90%. Wow!
The color space for the bitmap is CGColorSpaceCreateDeviceRGB. And the creating flag is kCGImageAlphaPremultipliedLast.
What can I do to improve performance on the iPhone 4? Any suggestions?
iphone bitmap
user396550
source share