What are good methods for high-performance full-sized bit effect on iOS?

Suppose I want to program a Star Field animation . Not using OpenGL, but directly using a screen buffer or external buffers that can be placed on the screen.

This Star Field TRS-80 demo is, of course, just an example. Think of video decoding or full-screen animation as other possibilities where you need 20 frames per second.

What are good methods for doing this? I am interested in both official and private APIs.

If you can, please show the basic code.

+5
source share
2 answers

.

CGBitmapContextCreate(), 2 CALayer UIView.

, / , CGBitmapContextCreateImage() CALayer.

+2

, : , : (0, 0) (, -Yoffset) (0, Yoffset) (, ). -, (0, height-Yoffset) (, ) (0, 0) (, Yoffset). Yoffset , , , reset Yoffset, (), 0. , Yoffset. X, Y, , .

iSGPU . , . , , . , , , " ".

! , /You.i Labs

0

All Articles