Skip to content

Performance with many physics objects #38

@ianobermiller

Description

@ianobermiller

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    2dRelated to @hex-engine/2dhelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions