HTML5 : Is iPhone4's hardware acceleration that much weaker than compared to the 4s?

标签 html css iphone-4 hardware-acceleration

我创建了一个 HTML5 网络应用程序,它通过 CSS3 属性 translateZ(0) 使用硬件加速。

在我的 4s 上,一切都非常顺利。

当我在 iPhone4 上测试同样的东西时,性能会急剧下降。几乎无法使用。

是否有某种奇怪的技巧可以为 iPhone4 启用硬件加速?还是它的 GPU 就是这么弱?

最佳答案

事实证明我一直在以错误的方式进行硬件加速转换,请参阅:

What are the "golden rules" to increase CSS3 transition performance on mobile devices?

使用 translate3d(x, y, z) 而不是 translateZ(0)left:x 对我有用。现在,即使在旧版 iPhone 上,所有转换也能非常流畅地运行。

关于HTML5 : Is iPhone4's hardware acceleration that much weaker than compared to the 4s?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14242679/

相关文章:

html - HTML文字编辑器

html - 为什么滚动行为在我的手机上不起作用?

javascript - 滚动时触发 ReactCSSTransitionGroup

iphone - 我们应该为应用商店提交 iPhone 4 大小的屏幕截图吗?

c# - 如何在 .NET 中从文本中去除 HTML?

javascript - 使用 Reveal.js 禁用某些方向的导航

javascript - 当我隐藏 <div> 时如何停止播放 <audio> 文件?

javascript - 一次选择一张图像

objective-c - iPhone 4 iOS 5 NSFetchedResultsController 如何选择批量大小?

core-plot - iPhone 4 iOS5 核心图和 ARC 错误 :"The current deployment target does not support weak references"