News for hackers. Stuff that matters.
Re:JavaScript Physics Engine by AshleysBrain on Sunday August 14, 2011 @07:27PM (#2884813)
TBH it's a small demo - I've heard while JS engines these days are fast, they still struggle with complex physics simulations. I can't see any performance details/improvements noted in this release - anyone got figures?
Re:JavaScript Physics Engine by MrNibbles on Sunday August 14, 2011 @08:55PM (#2884968)
Untrue, I used a port of Box2d (not this port, our own version) to build an "HTML5" game for sony, see link - http://www.youtube.com/watch?v=AicnuLQxHoQ

Unfortunately the game was taken down due to the Japan situation. Understandable.

Under Safari i was able to simulate ~80 live physics objects in a high collision environment at full frame render, bound to the DOM at 60fps on reasonable hardware 6 months ago (safari still has the fastest DOM paint time out there now).

Even when using Firefox 3.6 i could manage around 20 dynamic objects.

No CSS3 animation, just math and re-paints.

Javascript Math is not slow (at all), its generally the DOM/Canvas slowing you down.

Re:JavaScript Physics Engine by AshleysBrain on Monday August 15, 2011 @04:44AM (#2886050)
If you've ever used the C++ Box2D, you'll have been able to create hundreds of objects just fine. 80 still isn't much!
Re:JavaScript Physics Engine by MrNibbles on Monday August 15, 2011 @05:35AM (#2886133)
Of course! This is now nearly possible in Chrome/Safari/FF5, but the limiting factor is still primarily re-paint time rather than the simulation itself.
Re:JavaScript Physics Engine by AshleysBrain on Monday August 15, 2011 @11:08AM (#2887184)
Really? Even with FF5's hardware accelerated canvas?
Re:JavaScript Physics Engine by franze on Monday August 15, 2011 @06:19AM (#2886194)
the game looks awesome, any plans for a re-release?
Re:JavaScript Physics Engine by bermanoid on Monday August 15, 2011 @12:30AM (#2885451)
It's also worth checking out GWTBox2d, which is actually Java code run through GWT, and runs surprisingly well: http://gwtbox2d.appspot.com/

I'm really impressed with what JS can do these days...