Hello there. I'm looking for a modern and high-performance cross-platform solution to program 2D games initially for the desktop operating systems (Win/Mac/Linux) but I also plan to go commercial and release paid versions of some of my games for iPhone/iPad/Android, as well as ad-supported Flash versions.
However, the most important thing at the moment is the ability to deploy native applications (full-performance and without virtual machine) for the standard computers.
I'm playing with NME and It seems good, I don't understand some concepts, but overall, the entire thing flows smoothly (I'm using FlashDevelop). The only fallback is that I measured the performance of the box2d library (installed with haxelib) and when compiled to native code (cpp), the performance isn't good at all, I made a simple benchmark using the Date.now().getTime() (I think it's suitable) and the C++ version is only 23% faster than the Flash version (maths only), when the rendering comes into account (box2d debug rendering) the performance is actually much worse, I think it's due opengl problems, but it's not only worse in speed but also the Flash version is fully antialiased and pleasant to the eye.
I don't know if this bad performance is normal, because it's 34 times slower than the pure-C++ version, and I was expecting it to be at least 2-3 times slower.
When it comes to simple mathematics, a C++ version can outperform the Flash version by 10,000 times, I think it's due compiler optimizations.
So, is it possible to achieve a good performance for native C++ binaries, or should I look for another solution?
Thank you.