高分辨率的Andr​​oid设备的Adobe AIR滞后 [英] Adobe AIR lag on high resolution Android devices

查看:173
本文介绍了高分辨率的Andr​​oid设备的Adobe AIR滞后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个应用程序在Android上工作得很好iOS上,但有性能问题。我注意到,在旧的设备,如GALAXY S2与屏幕分辨率低,该应用程序是好的。它仅落后于新的高清设备,如银河S4和Nexus 4。

I have made an app which works well on iOS but has performance problems on Android. I have noticed that on older devices such as galaxy s2 with a low screen resolution, the app is fine. It only lags on the new hd devices such as the galaxy s4 and nexus 4.

是造成设备落后高的屏幕分辨率? 有谁知道我能做些什么,找出如何解决这个问题?

Are high screen resolutions causing the devices to lag? Does anyone know what I can do to find out how to fix this?

这真的很奇怪,因为它只有在新的设备。

It's really strange because it's only on the new devices.

推荐答案

不知道为什么它是发生在S4,因为它有一个体面的CPU和GPU,但高密度的屏幕的将会的原因滞后,尤其是在基于Flash的应用程序。我试图从iPad 2移到视网膜显示器时遇到了同样的问题。

Not sure why it is happening on the S4 since it has a decent CPU and GPU, but high-density screens will cause lag, especially in Flash-based apps. I ran into the same problems when trying to move from the iPad 2 to the retina displays.

让我们这样看它,关于iPad的问题,我有。 iPad 3的碰撞分辨率1024×768,从2048x1536的。这是 4X 作为多的像素。传统上,Flash有渲染矢量图像的问题。这是件好事吧,名列前茅,但它是缓慢的。所以在iPad 2绘制矢量对象只是一个40x40的区域进行更新。在iPad 3,它是一个160x160的区域来更新

Let's look at it this way, with regards to the iPad issue I had. The iPad 3 bumped the resolution from 1024x768 to 2048x1536. That is 4x as many pixels. Traditionally, Flash has issues rendering vector images. It is good at it, among the best, but it is slow. So rendering a vector object on the iPad 2 was only a 40x40 area to update. On the iPad 3, it is a 160x160 area to update.

快速提示:

  • 切勿使用CPU渲染。坚持直营(或GPU,如果你需要,但你失去与GPU的渲染功能,如过滤器)
  • 在减少使用向量的数量和频率要更改他们。你应该避免不惜一切代价,更新矢量对象每一帧。
  • 确保您正在测试一个发布版本(在Flash建筑商,工程 - >导出发行版...)测试帧率问题时。它一般是在一侧的iOS比Android的一侧更明显,但调试版本做事业滞后
  • 请不要设置帧率比你高得。随着帧率变高,每帧有较少运行必要的计算时间。你注意到的滞后并不是真正意义上的低帧率(虽然这并不能帮助),但更多的来自丢帧时,一帧的时间超过可用来呈现。 24是默认的,30是标准的。 60是最大,并且总是好的,但它是完全不必要的,除非你是一个游戏。

我在制作几个应用程序,现在该运行就好在我的Nexus 5,这是大致相同的硬件相同的分辨率S4,规格,明智的。除非有与硬件有问题具体而言,你应该能够管理30fps的没有问题,如果没有60。

I have several apps in production right now that run just fine on my Nexus 5, which is the same resolution as the S4 with roughly the same hardware, spec-wise. Unless there is a problem with that hardware specifically, you should be able to manage 30fps no problem, if not 60.

这篇关于高分辨率的Andr​​oid设备的Adobe AIR滞后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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