And maybe the first question is: is it useful or possible to get a graphics context cached on the GPU: On iPad 1, 2, and the New iPad, PowerVR is used as the GPU, and does it use the RAM as graphics memory? If so, can it and does it help if we get a graphics context cached on the GPU?
If in fact it can, then how would we get such a graphics context? There are mentioning of CGLayer
and CALayer
: CGLayer
can be cached on GPU, and CALayer
is often cached on the GPU, but CGLayer
is obtained from another context, using CGLayerCreateWithContext
, and that context supposedly should be a Window graphics context and it is only mentioned for how to get a Window Graphics Context on Mac OS X, not iOS. The part that mentioned how to get a "View Graphics Context" is actually the same context obtained in CALayer: CALayer began the display
and drawInContext
by using a Bitmap Graphics Context, it seems, and finally calls drawRect
in UIView
using this bitmap context, and I am not sure whether the idea that CALayer is cached on the GPU actually meant this Bitmap Graphics Context or does it mean layer.contents
which is a CGImage, so the caching is actually on this image, not the graphics context.