Git Product home page Git Product logo

Comments (3)

noosphere2 avatar noosphere2 commented on August 10, 2024

Better fix:
Michael Dewberry has solved this already in his forked repo: 57a1025

My old advice, before I found Michael Dewberry's fix, is below:

I ran into this problem too using:
OF 0.8.4, XCode 6.1, Mac OSX 10.10 (Yosemite)

I googled as well and came across this issue on the old Bullet google code home: https://code.google.com/p/bullet/issues/detail?id=697

They discuss that "16 byte aligning the glm matrix" solved their problems. Also, erwin.coumans says:

You either align the data, or disable all SSE and suffer some performance.
SSE requires alignment, it is a hardware requirement. It is only necessary in a few cases.

Looking through the btMatrix3x3.h code to make sure that we are using ATTRIBUTE_ALIGNED16, I noticed up the top that we have a preprocessor #ifdef that will change the ATTRIBUTE_ALIGNED16 depending on if BT_USE_SSE is defined or not.

So I tracked that down via a grep to addons/ofxBullet/libs/bullet2.8.1/include/LinearMath/btScalar.h.

Now this is probably a place we shouldn't be messing without knowing exactly what's going onβ€” but I've managed to fix this error by commenting out #define BT_USE_SSE and #define BT_USE_SSE_IN_API.

I don't know what SSE is, but from browsing the code I think that without SSE, Bullet will use NEON instead.

Now erwin.coumans in the quote above said that "if we disable all SSE we will suffer some performance". So maybe this is a temporary fix …

Hope this helps you + others!

from ofxbullet.

rom-io avatar rom-io commented on August 10, 2024

nice, works a treat.

from ofxbullet.

wookee9 avatar wookee9 commented on August 10, 2024

+1 works great. Thanks!

from ofxbullet.

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.