煎茶触摸2 - Android的性能 [英] Sencha Touch 2 - Android Performance

查看:148
本文介绍了煎茶触摸2 - Android的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一种煎茶触摸2应用程序,它利用的PhoneGap的,以便能够安装它作为应用程序和访问设备的存储。这个作品真的很好在iPad 2和iPad 3。然而,当我们试图运行在Android设备上的应用程序时,表现得非常缓慢。这减缓了系统的主要内容是列表和转盘。当我们试图通过Chrome浏览器测试相同的应用程序,性能是在标准杆与iPad的。

We are developing a Sencha Touch 2 application which makes use of Phonegap to be able to install it as an application and access the storage of a device. This works really well on the iPad 2 and the iPad 3. However when we tried to run the application on an android device, the performance was very slow. The main elements which slowed down the system were lists and carousels. When we tried to test the same application through the chrome browser, the performance was on-par with that of the iPad.

你有什么我们可以做些什么来提高机器人的性能,甚至抛弃的PhoneGap的一些东西,更好地工作的任何建议。或者,如果我们可以强制的PhoneGap作为一个Chrome浏览器中运行。

Do you have any suggestions on what we can do to improve the performance on android, maybe even ditching Phonegap for something which works better. Or if we can force phonegap to run as a chrome browser.

感谢您的时间和放大器;帮助。

Thank you for your time & help.

推荐答案

您在这里的问题是,Android的浏览器不使用图形硬件加速。这意味着,煎茶(和其他HTML5库,如jQueryMobile,iScroll等)使用,以提供良好的滚动性能标准的招数,如CSS 3D转换造成的列表在一个单独的层被渲染,这可然后被转换在硬件,也不会在Android上运行。相反,滚动列表将完全以软件,这将是缓慢的进行!

The problem you have here is that the Android browser does not use graphics hardware acceleration. This means that the standard tricks that Sencha (and other HTML5 libraries such as jQueryMobile, iScroll etc...) use to provide good scrolling performance, such as CSS 3D transforms to cause a your list to be rendered in a separate layer, which can then be translated in hardware, will not work on Android. Instead, list scroll will be performed entirely in software, which is going to be slow!

Chrome浏览器,但不提供GPU加速。 Android设备超过能够提供一个良好的HTML5体验,这仅仅是标准的浏览器不利用GPU硬件呢。

The Chrome browser, does however provide GPU acceleration. The Android device is more than capable of delivering a good HTML5 experience, it is simply that the standard browser does not take advantage of GPU hardware yet.

除非你能强迫你的最终用户使用Chrome(我怀疑),唯一的选择就是降低用户体验,并提供一个稍微简单的用户界面为Android用户。

Unless you can force your end users to use Chrome (which I doubt), the only option is to degrade user experience, and deliver a slightly simpler UI for Android users.

有关详细信息,请参阅改善你的HTML5应用程序中的性能

For further details, see "IMPROVING THE PERFORMANCE OF YOUR HTML5 APP"

这篇关于煎茶触摸2 - Android的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆