简体   繁体   English

Sencha Touch中的Android性能问题-Cordova应用

[英]Android Performance issues in Sencha Touch - Cordova App

I am using Cordova and Sencha Touch 2.3.1 to create both Android and Ios apps. 我正在使用Cordova和Sencha Touch 2.3.1来创建Android和Ios应用程序。 The performance of the IOS app is quite good however the android app performance is very sluggish. IOS应用程序的性能相当不错,但是android应用程序的性能却非常缓慢。

The home page comes is quite good shape but as soon as I open any other page the entire font as well as screen color etc becomes dull and screen response time becomes very high. 主页的形状非常好,但是当我打开任何其他页面时,整个字体以及屏幕颜色等都变得很暗淡,屏幕响应时间变得非常高。

Any solutions or pointers will be highly appreciated. 任何解决方案或指针将不胜感激。

I am using:- Sencha Touch 2.3.1 我正在使用:-Sencha Touch 2.3.1

Corodva 3.3.1-0.3.1 哥罗德瓦3.3.1-0.3.1

adt-bundle-windows-x86_64-20131030 ADT-束窗口,x86_64-20131030

Sencha Cmd v4.0.2.67 Sencha Cmd v4.0.2.67

Part of the issue may be that iOS has a dedicated GPU and compiles mobile Safari with GPU acceleration, whereas most Android devices don't. 问题的部分原因可能是iOS具有专用的GPU,并使用GPU加速来编译移动Safari,而大多数Android设备却没有。

There's going to be a lot of potential answers to your question, it's likely that in some or a few ways that your application isn't following best practices which may be causing it to run slowly. 您的问题将有很多潜在的答案,很可能您的应用程序在某些或某些方面未遵循最佳实践,这可能会导致其运行缓慢。 The DOM might be too large, you could be instantiating things when you don't need them and forgetting to destroy them and a whole bunch of other stuff. DOM可能太大,您可能在不需要它们时实例化它们,却忘记了销毁它们以及其他许多东西。 There's a great video about Sencha Touch best practices I wrote a blog post about here: http://www.joshmorony.com/top-10-tips-sencha-touch-best-practices-review/ 有一个关于Sencha Touch最佳实践的精彩视频,我在这里写了一篇博客文章: http : //www.joshmorony.com/top-10-tips-sencha-touch-best-practices-review/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM