-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add Option for WebWorker for AmmoJS #19
Comments
I plan definitively to add it, once the project becomes more popular. I have never used the Web Workers API, so I would first have to make some tests. For now I have no performance issues, since enable3d loads the wasm build if the client browsers allows it. Btw, I see you reference babylonjs. I have already played around rewriting the |
We've been playing around with Enable3D - it's really great. But with any Ammo.JS project (presumably other physics engines too) when the FPS starts to drop due to other processes (e.g. running a Teams video call, which has a big impact on the GPU), or it's a low performance machine, then the Physics start to jank or glitch. So any performance tweaks you can include would be very helpful going forwards. The Babylon reference I included shows how to implement Ammo JS with an inline webworker. It looks relatively straight forward. |
Thanks 😃 I guess I will start trying to put the physics update loop in a worker. It seems to be well supported. I'll see what I can do :) |
Thanks! Look forward to seeing what you come up with :-) |
I just looked into Web Workers + Ammo.js. It looks very promising, but it requires a lot of refactoring. I will definitely try to implement it :) |
So glad you agree it's worth trying. Think it could be hugely beneficial. |
I'm making progress: |
Looking really promising |
@yandeu just wondering how progress was with this? Am keeping my fingers tightly crossed for awesome news... |
Sorry not finished yet. My guess is that it take 2 month to add it (at my current speed, since it is not a top priority). But I will definitively add it. All my test where successful. 👍 |
Hi, Great lib, easy to use ;-) Sincerely |
This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. |
Where supported, it would be a real performance improvement to include a webworker for the Ammo JS calculations.
See example here: https://playground.babylonjs.com/#N7PGG3#2
The text was updated successfully, but these errors were encountered: