by bean-weevil · 1y ago · 0 comments
TLDR: SIMD intrinsics are great. But, their performance in debug builds is surprisingly bad.
Aras and pretty much all gamedevs are concerned about this because they use SIMD in critical loops and debug build performance is a major concern in gamedev.
Debug build performance has been an issue forever for a variety of reasons. The most common solution is to keep certain critical systems optimized even in debug build. And, only disable optimizations for those individual subsystems when they are the specific target of debugging. It’s inconvenient for game engines devs. But, that’s a small subset of the engineering team.
For clang: #pragma clang optimize off
For MSVC: #pragma optimize("", off)
Put one of these at the top of your source file.