How much more complex is it to draw simple curves, lines and circles in OpenGL ES rather than in Quartz 2D?

前端 未结 4 771
陌清茗
陌清茗 2021-01-06 23:45

Is OpenGL ES really so much faster? Why? And is it really so horrible complicated to draw such simple things in OpenGL ES compared to drawing these in Quartz 2D?

For

4条回答
  •  离开以前
    2021-01-07 00:26

    A typical performance seeking journey:

    • drawRect
    • Core Animation (CA)
    • OpenGL

    IMO:

    • if anything can be done in drawRect and also can be done by CA, use CA
    • if anything can be done in OpenGL and also can be done by CA, use CA

    just my 0.02

提交回复
热议问题