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

Low performance compared to three.js #13

Closed
OverNothing opened this issue Apr 11, 2020 · 2 comments
Closed

Low performance compared to three.js #13

OverNothing opened this issue Apr 11, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@OverNothing
Copy link

I tested the performance of mesh.js and three.js by drawing thousands of circles.

The result shows three.js outperforms mesh.js.
When drawing 10,000 circles, fps of three.js remain around 38.
But mesh.js only has 17 fps.
Do you have any ideas about the reason of performance difference and how to improve mesh.js?

@akira-cn akira-cn added the enhancement New feature or request label Apr 16, 2020
@akira-cn
Copy link
Collaborator

Hi, thanks to report this.

I optimized the performance now it's about 30fps.

It still has a little gap between mesh.js and three.js.

The two frameworks have different usage. Mesh.js uses different mechanism to render 2d objects and prepare fallbacks to canvas2d in some cases. Maybe the rendering mechanism of mesh.js consume a bit more than three.js.

Anyway, we will continue to optimize :)

@akira-cn
Copy link
Collaborator

BTW, you can use the experimental MeshCloud method (I will add to document soon).

MeshCloud gain much better performance.

mesh.js demo use mesh-cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants