ammo.js icon indicating copy to clipboard operation
ammo.js copied to clipboard

low performance in webworker

Open EnricoBeltramo opened this issue 1 year ago • 1 comments

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?

EnricoBeltramo avatar Sep 07 '24 11:09 EnricoBeltramo

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

suddenly4 avatar Sep 28 '24 12:09 suddenly4