Open dmagunov opened 9 years ago
Nice work!
Is there a performance difference? Seems very similar to me.
Should we merge this in?
Thanks!
I also don't see any performance difference. It would be nice to merge this into the main branch. If you would need any help, please let me know.
Great work @dmagunov - and thanks for the article. I know this is old, but I'm getting a significantly better frame rate with box2dweb (on the domino tower). Anybody know why that might be? From what I've heard it should be the other way around, right?
That does seem surprising - do you have links to parallel demos showing that?
By parallel demos, do you mean these (provided by @dmagunov above)? http://argadnet.com/demo/rube_testbed/box2dweb/index.html http://argadnet.com/demo/rube_testbed/box2djs/index.php
Weirdly enough, the domino tower one is now running at about the same fps for both. It may have something to do with the way each library handles memory, because my computer was a little starved for RAM (due to other applications hogging it) when I last tried. That's just a guess though
Thanks, sorry I missed those links before.
Profiling domino tower now, I see most time in the box2dweb version in draw
, and in the box2d.js version in drawPolygon
. In other words,
Overall, those suggest to me that at least for domino tower, this is mostly benchmarking the rendering systems, not the physics systems.
Ahh, good spotting. If only we had a nice physics abstraction layer to do some proper tests (particularly interested in how p2 compares to your box2d port)
Hello guys,
Please check my updates to Your project with support of latest Box2D library and debug output:
source code | demo | article
Thanks!