Code Monkey home page Code Monkey logo

Comments (1)

jsanmiya avatar jsanmiya commented on May 16, 2024

Hey Karizwinnen,

That's a cool fork of box2d. It looks like they optimized a few key
functions with intrinsics
https://github.com/huningxin/box2d.js/blob/sse/Box2D_v2.2.1/Box2D/Dynamics/Contacts/b2ContactSolver.cpp#L674,
so yes, it seems possible to pull that in, although we'd have to ensure it
works for all platforms, not just Intel processors.

That being said, I think it's nice to stick as close as possible to
official Box2D releases (currently we're based on the 2.3.0 release of
Box2D). This way, people can use LiquidFun as a drop-in replacement.
Pulling in code from other places increases the chance that we'll introduce
a deviation.

One thing to note: their SIMD optimizations use SSE
https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions, so they're for
Intel and AMD chips. LiquidFun's SIMD assembly code is for NEON
http://www.arm.com/products/processors/technologies/neon.php, so for ARM
chips. So they're optimizations for different platforms. Still useful, but
slightly different.

On Wed, Oct 28, 2015 at 8:30 AM, karlzwinnen [email protected]
wrote:

As Liquidfun uses SIMD for its particle system, i was wondering if there
are any plans to optimize the box2d part as well?

It seems there already is a fork of box2d available which makes use of
SIMD (and also enables this for SIMD.js through emscripten):
http://peterjensen.github.io/html5-box2d/
The source seems to be hosted here:
https://github.com/huningxin/box2d.js/tree/sse

Would it be difficult to merge this back in the box2d core liquidfun uses?


Reply to this email directly or view it on GitHub
#58.

from liquidfun.

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.