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 in webworker #431

Open
EnricoBeltramo opened this issue Sep 7, 2024 · 1 comment
Open

low performance in webworker #431

EnricoBeltramo opened this issue Sep 7, 2024 · 1 comment

Comments

@EnricoBeltramo
Copy link

I implemented an application that run ammo inside a webworker. anyway, when it run in webworker I have a significative drop of performance in step simulation (x10 slower) when I use soft bodies. I escluded data transfer issue (I simply ran the same loop with same configuration in main and in webworker, without messages and postmessages ). someone should know what is the issue?

@suddenly4
Copy link

I tested different approaches (create new geometry in parallel tread, then send to main)
https://jsfiddle.net/suddenly4/5wng37vd/2/
to create a soft body in a parallel flow should be on the same principle, also through triangulation how that concave rigid bogy

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

No branches or pull requests

2 participants