本文介绍了我们可以使用编译HAXE SWF的深港西部通道的在Actionscript中正常库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可否使用编译HAXE SWF的深港西部通道的在Actionscript中正常库?我从haXe的code的SWF编译(我可以尝试把它编译成别的东西SWC为前),我想用它作为LIB在AS3。

Can we use compiled HAXE swf's swc's in Actionscript as normal libs? I have a swf compiled from haxe code (I can try to compile it into something else SWC for ex) I want to use it as lib in AS3.

这可能吗?

如果是该怎么办呢?

推荐答案

是的,你可以,性能提升是值得的,它是非常容易!我得到了加总质数既是一个简单的算法和复杂的2D装箱3-4倍的算法加速。

Yes, you can, the performance increase is worth it, and it's surprisingly easy! I got 3-4X speed-up on both a simple sum-of-primes algorithm and a complex 2D bin packing algorithm.

我已经张贴在GitHub上一个完整的示例项目 - 从HAXE源在AS3项目编译脚本的使用。检查出来: https://github.com/jcward/HaxeSWCExample

I've posted an entire example project on github -- from Haxe source and compile scripts to usage in an AS3 project. Check it out: https://github.com/jcward/HaxeSWCExample

更新:的注意的是,3-4倍涨幅均在桌面平台上。可悲的是在移动平台上,大盘涨幅要温和得多。

Update: Note that the 3-4X gains were on the desktop platform. Sadly on mobile platforms, the gains were much more modest.

这篇关于我们可以使用编译HAXE SWF的深港西部通道的在Actionscript中正常库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 19:15