CATiledLayer in iPad retina simulator yields poor performance

后端 未结 4 1380
庸人自扰
庸人自扰 2020-12-23 08:37

I\'m hoping maybe this is just an issue with the simulator but of course it has me worried since I have already submitted my retina capable apps and there\'s no way to test

4条回答
  •  [愿得一人]
    2020-12-23 09:06

    CATiledLayer performance on the simulator seems to be nothing like that of that on an actual new iPad. Test on actual hardware.

    CATiledLayer generates a lot more tiles on the new iPad than on older devices, even when using the same settings. At the moment I detect whether the code is running on a hires screen (via CALayer's contentScale property), and if so, set a bigger tile size.

    I'll be doing more experimentation, and will post any significant findings here.

提交回复
热议问题