Physics in Javascript Using Box2D(somethingcoded.net) |
Physics in Javascript Using Box2D(somethingcoded.net) |
(Sorry, this is totally off-topic, but...) It's surprisingly easy to make a segway-like balancing robot with perfect sensors. My plan is to add noise in the sensors and limited motor torque, etc. Ideally it would estimate its own kinematic parameters and do an A* search for approximate optimal control.
i don't think what you're saying is totally off topic. box2d is pretty awesome and it's surprisingly easy to get physics simulations up and running using the library.
btw disasteroids is hilariously awesome. Great work.
Either way, though, if you have a reproduction case for those pauses you should definitely file a bug about it on the appropriate tracker - emscripten's if something is wrong with the generated code, or chromium's.
I think you're right though. Once it's been running a while, it seems OK; so I think it was JIT compilation pauses.
It does indeed seem to be the JIT warming up. The good news is that Chrome Canary is significantly smoother, so 6-8 weeks until that hits stable.