kripken / ammo.js

Direct port of the Bullet physics engine to JavaScript using Emscripten
Other
4.19k stars 559 forks source link

How to improve the performance of physical scenes? #399

Open syzdev opened 2 years ago

syzdev commented 2 years ago

My goal is to use ammo.js build a slightly larger physical scene: about 10000 boxes. (Maybe not so much, but the more the better)

But it's obvious that Browsers can't afford it.

So I want to ask you for help:

  1. Are there any ways to optimize performance in ammo.js?
  2. Are there any ways to optimize performance in three.js for ammo.js?
  3. What other suggestions do you have for building large physical scenes?

Thank you in advance. : )

arcman7 commented 2 years ago

Uh, I think browsers should definitely be able to handle 10k boxes. Do you have some sort of way to showcase your problem online? I'd be happy to take a quick look if you want.