iOS / Core-Animation: Performance tuning

前端 未结 5 1949
梦谈多话
梦谈多话 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:58

    Are you using shadows on your layer for me it was a cause of performance issue, then you have 2 options AFAIK: - setting shadowPath that way, CA does not have to compute it everytime - removing shadows and using images to replace

提交回复
热议问题