Coder Social home page Coder Social logo

Comments (13)

yandeu avatar yandeu commented on May 19, 2024 5

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. 👍

from enable3d.

nipmarsh avatar nipmarsh commented on May 19, 2024 4

Hi,

Great lib, easy to use ;-)
I work on complex scenes with many objects and in my case the current implementation run slow.
Maybe, it will be much better with workers.
How far are you to integrate it ?

Sincerely

from enable3d.

yandeu avatar yandeu commented on May 19, 2024 3

I'm making progress:
https://youtu.be/p1iVl1p89SA

from enable3d.

DeeElGee avatar DeeElGee commented on May 19, 2024 1

Thanks! Look forward to seeing what you come up with :-)

from enable3d.

yandeu avatar yandeu commented on May 19, 2024

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 @enable3d/ammo-physics to use with babylonjs. This is also on my todo list.

from enable3d.

DeeElGee avatar DeeElGee commented on May 19, 2024

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.

from enable3d.

yandeu avatar yandeu commented on May 19, 2024

We've been playing around with Enable3D - it's really great.

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 :)

from enable3d.

yandeu avatar yandeu commented on May 19, 2024

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 :)

from enable3d.

DeeElGee avatar DeeElGee commented on May 19, 2024

So glad you agree it's worth trying. Think it could be hugely beneficial.

from enable3d.

DeeElGee avatar DeeElGee commented on May 19, 2024

Looking really promising

from enable3d.

DeeElGee avatar DeeElGee commented on May 19, 2024

@yandeu just wondering how progress was with this? Am keeping my fingers tightly crossed for awesome news...

from enable3d.

github-actions avatar github-actions commented on May 19, 2024

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.

from enable3d.

github-actions avatar github-actions commented on May 19, 2024

This issue was closed because it has been stalled for 10 days with no activity.

from enable3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.