actionscript 3 - Java performance in Air Native Extension, how do I optimize? -


i have simulatin 30 airplanes want run on android phone.

i coded whole thing in as3 figured there boost in performance if i'd use java in native extension.

the simlation library of 30 units. simulation calculates distance , rotation between units. 870 iteration many distance , rotation calculations.

my ane on java runs 50x slower as3 version.

the problem seems calling setobjectat() on frearray multiple times. guess conversion of java as3 slow. there way optimize getting variables java as3?

i guess as3 performance not different standard java performance, when used native extension.

however, android ndk, allowed me rebuild library in c++, not @ performance increase of 20x.

so if looking performance edge on android as3: use ndk.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -