What is the fastest way to draw single pixels directly to the screen in an iPhone application?

后端 未结 4 1607
后悔当初
后悔当初 2021-01-03 04:21

I am looking the fastest way to draw thousands of individually calculated pixels directly to the screen in an iPhone application that preforms extremely well.

4条回答
  •  死守一世寂寞
    2021-01-03 04:53

    Most probably using OpenGL, something like:

    glBegin(GL_POINTS);
    glColor3f(...);
    glVertex3f(...);
    ...
    glEnd();
    

    Even faster would probably be to use vertex arrays for specifying the points.

提交回复
热议问题