v0.2.2 minified file is slow
http://fatidol.com/phy-benchmark/planck-test.html
it's worse than the old version
Sorry to hear that. Do you know which version you used before v0.2.2?
@zOadT https://github.com/shakiba/planck.js/blob/master/lib/collision/AABB.js#L93-L115 Replace with(for exmaple):
lowerA = a.lowerBound
upperA = a.upperBound
lowerB = b.lowerBound
upperB = b.upperBound
FPS ↑↑↑
I got it, I will fix it.
I reverted that change, can you please check it out again.
It's still slow than old version( v0.2.1 ).
@finscn Thanks for sharing your performance reviews. I used your example code with both v0.1 and v0.2.3, I can't see the difference.
Also please note that drawing shapes on canvas is an expensive process. I use stage.js in testbed, it draws shapes to textures and then reuse textures to avoid redrawing shapes in each frame.
@finscn Can I add your test to examples in this project, or would you like to make PR for that?
It seems that minified file of version 0.2+ is actually slow!