AsyncTask的还闪光灯? [英] AsyncTask also in flash?

查看:159
本文介绍了AsyncTask的还闪光灯?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有27MB开发的一个游戏的大小,我将它加载设备及放大器;它的性能会降低,有些时候它挂device.there都备受媒体资源在本game.if使用我让它在Android的话,我会处理好与的 AsyncTask的,并提出一些进程的背景,也使内存管理,但在这里,我有发展游戏闪光灯与 AS3 和使用 Adob​​e AIR的。所以我的问题是::请问有什么方法或类似asynTask都留在闪存任何性能相关的事情由我承担对表现不佳precaution?

i have develop one game size of 27mb,i load it in device & its performance are going to lower and some time its hang the device.there are much Media resource are used in this game.if i make it in android then i will handle with Asynctask and make some process in background and also make memory management but here i have develop game in flash with AS3 and use Adobe Air. so my question is :: is there any method like asynTask are stay in flash or any performance related thing by which i take precaution against poor performance?

感谢
 NIK

Thanks
nik

推荐答案

您应该考虑使用Flash 11和AIR 3 - 新版本允许本地code的执行,这样就可以使用Flash和AIR为UI和,而在同一时间,你可以异步执行一些本地螺纹code,否则将有被占用的时间帧之间的动画。在本地code可将所有不相关的UI计算的 - 例如:人工智能逻辑。

You should consider using Flash 11 and AIR 3 - the new version allow the execution of native code, so that you can use Flash and AIR for the UI and the animations while at the same time you can execute asynchronously some native threaded code that otherwise would have of been occupying the time in between frames. In the native code you can have all of the calculations that are not related to the UI - e.g. the AI logic.

有一个详细的教程是由李提供布赖姆洛在他的博客 - 两部分组成的教程在Android原生扩展

A detailed tutorial is provided by Lee Brimelow on his blog - Two-Part Tutorial on Android Native Extensions

这篇关于AsyncTask的还闪光灯?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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