Should I use SIMD or vector extensions or something else?

前端 未结 3 1637
南旧
南旧 2021-02-01 20:55

I\'m currently develop an open source 3D application framework in c++ (with c++11). My own math library is designed like the XNA math library, also with SIMD in mind. But curren

3条回答
  •  温柔的废话
    2021-02-01 21:32

    I would suggest using the naked simd code in a tightly controlled function. Since you won't be using it for your primary vector multiplication because of the overhead, this function should probably take the list of Vector3 objects that need to be manipulated, as per DOD. Where there's one, there is many.

提交回复
热议问题