Faster iPhone PNG Animations

后端 未结 3 1681
半阙折子戏
半阙折子戏 2021-01-03 08:07

Currently I have a PNG animation on a timer that is firing every .01 seconds. However, performance isn\'t optimal and the animation is visibly slow. I have over 2000 images.

3条回答
  •  Happy的楠姐
    2021-01-03 08:32

    How about CADisplayLink for managing fps?

    OpenGLES needs to spend time to convert an image to texture, and texture needs careful memory management. When memory is not enough, it will generate a whole white texture.

提交回复
热议问题