Which parts of UIKit, Core Graphics, Core Animation, OpenGL are allowed on non main-thread?
问题 In my OpenGL-ES 1.1 based app, I'm using CALayer s as a source for OpenGL textures. Those CALayer s comprise of CGImage s and text rendered through CoreGraphics. Another OpenGL texture source is a screenshot of a UIView taken using -[CALAyer renderInContext:] and UIGraphicsGetImageFromCurrentImageContext . Currently, I'm running completely on the main thread. The latter case in particular is pretty bad because it halts the OpenGL rendering for the whole time it takes to create the UIView and