Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance with many physics objects #38

Open
ianobermiller opened this issue Mar 4, 2020 · 4 comments
Open

Performance with many physics objects #38

ianobermiller opened this issue Mar 4, 2020 · 4 comments
Labels
2d Related to @hex-engine/2d help wanted Extra attention is needed

Comments

@ianobermiller
Copy link

I noticed that after adding a dozen circles that collide the rendering slows down considerably. matter.js appears to be able to handle much more than this, so I don't think the problem is the underlying physics lib. It looks like it is caused by useEntitiesAtPoint doing a ton of matrix operations.

Sample repo: https://github.com/ianobermiller/jezzball-in-hex

@suchipi
Copy link
Owner

suchipi commented Mar 8, 2020

Thank you for opening this!

@suchipi
Copy link
Owner

suchipi commented Mar 8, 2020

This should be improved in @hex-engine/2d@0.3.4. Could you take a look?

@ianobermiller
Copy link
Author

That definitely helps! There are still issues with 50-100 balls but it is better.

@suchipi
Copy link
Owner

suchipi commented Mar 10, 2020

I'll keep this issue open, because there are other improvements I want to make.

@suchipi suchipi added 2d Related to @hex-engine/2d help wanted Extra attention is needed labels Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2d Related to @hex-engine/2d help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants