使用 iOS 4.2 gm 种子在 iPad 上进行文本绘制非常耗时

发布于 2024-09-30 17:40:38 字数 243 浏览 1 评论 0原文

我编写了一个应用程序,使用我自己的自定义字体在视图上绘制一些文本,在装有 iOS 3.2 的 iPad 上绘制大约需要 200 毫秒,但在我一个月前安装 iOS 4.2 BETA 后,需要超过 2 到 3 秒的时间绘制(10 - 15次以上),当时我认为这是一个BETA问题,所以我回滚到iOS 3.2,然后昨天我安装了4.2 GM Seed(这被认为是最终版本)并且发生了同样的问题,

请问有人知道发生了什么事吗?

感谢您的帮助,祝您好运

I wrote an app which draws some text on the view using my own custom fonts, and the drawing takes about 200 ms on iPad with iOS 3.2, but after I installed iOS 4.2 BETA a month ago, it took more than 2 to 3 seconds to draw (10 - 15 times more), at that time I thought it's a BETA problem so I rolled back to iOS 3.2, then yesterday I installed the 4.2 GM Seed (which is considered as a final release) and the same problem happened,

Does anyone have an idea of what's going on?

Thank you for your help and good luck

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

合久必婚 2024-10-07 17:40:38

最好的选择是使用 Instruments.app (/Developer/Applications/Instruments.app) 中的采样器工具来确定您的时间都花在哪里了。然后您就会知道什么实际上是慢的,并且您可以优化您需要的内容。

Your best bet is to use the Sampler tool in Instruments.app (/Developer/Applications/Instruments.app) to determine where your time is being spent. Then you'll know what is actually slow, and you can optimize what you need to.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文