Re: NME performance vs. native

Haxe NME compiles to pretty efficient C++ code but it may be slower than hand written C++ in these cases: - writing dynamic code (using Dynamic or typedefs), - heavy maths/geometry building; Haxe Float is implemented using C++ 'double' instead of 'float…

Viewing 1 to 1 (1 Total)
Re: NME performance vs. native

Philippe

Philippe
Total Posts: 261
Joined: September 08, 2011

Haxe NME compiles to pretty efficient C++ code but it may be slower than hand written C++ in these cases:
- writing dynamic code (using Dynamic or typedefs),
- heavy maths/geometry building; Haxe Float is implemented using C++ 'double' instead of 'float' and it has important consequences,
- little overhead when manipulating graphical elements.

Now if the CPU isn't the bottleneck it should perform as well as marmalade.


ScaleForm is a very different and specific approach :
- it's all based on timeline vectors and animations; this part is fast if you use simple vector shapes,
- AS2/AS3 scripts are interpreted and should generally run comparatively very slow and this will be a bottleneck if you want to control lots of entities/particles or do heavy maths.

Posted on July 26, 2012 at 10:53 AM