Performance surprise #915
Unanswered
stevedevel
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I did a bit of performance testing to see and compare real numbers in my environment and was surprised. It seems like for AABB collision tests only there is a little javascript library that outperforms rapier by factor 3. Now I am trying to find out why this is the case.
As comparison I used @dimforge/rapier2d-compat and rbush. The numbers behind the name indicate number of colliders (or AABB boxes) and the number of collision tests. This is the result:
Did not expect that since rapier is implemented in WASM. On the other hand there might be lots of other factors in this case like whole purpose of the libraries used. rbush is specialized for AABB tests and rapier has always a hole bunch of overhead with different shapes, physics, etc. Or maybe I am using rapier in the wrong way. Anyways for those interested here is my code:
Beta Was this translation helpful? Give feedback.
All reactions