iOS / Core-Animation: Performance tuning

前端 未结 5 1943
梦谈多话
梦谈多话 2021-02-04 05:17

I have my app running on my iPad. but it is performing very badly -- I am getting below 15fps. can anyone help me to optimise?

It is basically a wheel (derived from U

5条回答
  •  北海茫月
    2021-02-04 05:54

    Try it without your shadows and see if that improves performance. I imagine it will improve it greatly. Then I'd look into using CALayer's shadowpath for rendering shadows. That will greatly improve shadow rendering performance.

    Apple's Core Animation videos from last year's WWDC have a lot of great info on increasing performance in core animation.

    By the way, I'm animating something way more complex then this right now and it works beautifully even on an older iPhone 3G. The hardware/software is quite capable.

提交回复
热议问题