Heya.
Look, I'd like to start off this post by graciously thanking everyone involved in making the library. It's filled with brilliant ideas and the different language ports all contain their individual genius. In no way am I trying to lessen the massive kudos everyone involved should receive by writing this post.
That being said.
Version 2.01 is pretty far from AS3 optimized. There's a myriad of places where very simple code optimization sweep can improve the cycle time by quite a lot. It ranges from small details like multiplication instead of division, to iterating over accessors, to iterating and accessing chain accessors, to iterating and accessing static methods (or properties), not typecasting properly, overuse of the var keyword and in general just not quite sound coding practices. Compared to the insane complexity of the box2d engine, there's no rocket science involved.
I'm currently involved in a somewhat ambitious project involving box2d and after having spent maybe 3-4 days just optimizing simple things I'm fairly convinced that a rigorous optimization sweep could improve the overall performance by at least 50%. Over the course of the last few days I have improved the lowest FPS dips with around 15 frames per second. And it feels like I'm just scratching the surface.
Everything that I've changed is clearly marked by the way, no need to get nervous about libraries being intact.
Now, I guess where I'm going with all this is the open source nature of the project. I would love to contribute with everything I've gone through and optimized but as far as I can see there's no real good channel to do so.
If not, I would graciously ask that the project originators maybe shoot me a message and I'll list all the issues I've found so that you guys can sort them out in any way you deem okay.
Cheers for your time.
Look, I'd like to start off this post by graciously thanking everyone involved in making the library. It's filled with brilliant ideas and the different language ports all contain their individual genius. In no way am I trying to lessen the massive kudos everyone involved should receive by writing this post.
That being said.
Version 2.01 is pretty far from AS3 optimized. There's a myriad of places where very simple code optimization sweep can improve the cycle time by quite a lot. It ranges from small details like multiplication instead of division, to iterating over accessors, to iterating and accessing chain accessors, to iterating and accessing static methods (or properties), not typecasting properly, overuse of the var keyword and in general just not quite sound coding practices. Compared to the insane complexity of the box2d engine, there's no rocket science involved.
I'm currently involved in a somewhat ambitious project involving box2d and after having spent maybe 3-4 days just optimizing simple things I'm fairly convinced that a rigorous optimization sweep could improve the overall performance by at least 50%. Over the course of the last few days I have improved the lowest FPS dips with around 15 frames per second. And it feels like I'm just scratching the surface.
Everything that I've changed is clearly marked by the way, no need to get nervous about libraries being intact.
Now, I guess where I'm going with all this is the open source nature of the project. I would love to contribute with everything I've gone through and optimized but as far as I can see there's no real good channel to do so.
If not, I would graciously ask that the project originators maybe shoot me a message and I'll list all the issues I've found so that you guys can sort them out in any way you deem okay.
Cheers for your time.