ios - 在 Adob​​e Flash Pro 中设计的应用程序在 iOS 设备上的动画滞后

标签 ios actionscript-3 air rendering flash-cs6

我正在使用 adobe AIR 和 Flash CS6 开发 iOS 应用程序和 android 应用程序。该应用程序包含大量动画。由于位图图像质量不佳,我只将图像保持为矢量形式。它在 Android 设备上运行良好,但当我在 iOS 设备上发布它时,许多动画滞后。如何在不影响动画质量的情况下解决这个问题?我使用的是 AIR SDK 4.0 版和 GPU 渲染方法。任何帮助,将不胜感激。

最佳答案

您可以尝试以下几种方法:

  • 将 TweenMax/TweenLite 用于您的动画,因为 GreenSock 库针对性能进行了优化
  • 尝试在您正在制作动画的矢量上将 cacheAsBitmap 设置为 true
  • 将向量转换为缓存的位图数据 ( http://esdot.ca/site/2012/fast-rendering-in-air-cached-spritesheets )
  • 尝试使用“直接”模式进行渲染是否会产生更好的性能;根据我的经验,GPU 不太适合矢量

关于ios - 在 Adob​​e Flash Pro 中设计的应用程序在 iOS 设备上的动画滞后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23538758/

相关文章:

ios - actionscript3 中的共享对象问题

multithreading - Adobe Air 桌面应用程序挂起(无响应)

actionscript-3 - 当尝试选择 BLOB 类型的列时,SQLStatement 抛出 RangeError #2006 : The supplied index is out of bounds

ios - 无法使用 Flash Builder 4.6 和 Air4.0 构建 iOS 应用程序

iOS:本地化的 UILabel 文本未对齐

javascript - iOS Web App 触摸手势

ios - 单元格或标题 View 高度的 UITableViewAutomaticDimension 导致 UITableView insertRowsAtIndexPaths() 崩溃

actionscript-3 - ActionScript 3 AsyncToken 实现

ios - 无法与添加为 HeaderView 的 SearchBar 交互

c# - C# 中日期的日期字符串 - 星期几不正确