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
Post a Comment