4 ms·
Any idea about perf diff between this and GLM? In Computer graphics my use case is with fixed 4x4 matrices and vec4s. Thanks!
by ensiferum 4y ago
Any idea about perf diff between this and GLM? In Computer graphics my use case is with fixed 4x4 matrices and vec4s. Thanks!
- Const-me 4y agoI never really used GLM, but Eigen was substantially slower than DirectXMath https://github.com/microsoft/DirectXMath https://github.com/microsoft/DirectXMath for these things. Despite the name, 99% of that library is OS agnostic, only a few small pieces (like perspective projection matrix formula) are specific to Direct3D. When enabled with corresponding macros, inline functions from that library normally compile into pretty efficient manually vectorized SSE, AVX or NEON code. The only major issue, DirectXMath doesn’t support FP64 precision.
- Ono-Sendai 4y agoLast time I tried Eigen, it sucked for 4x4 matrices.