Closed KungFuJesus closed 2 months ago
All intrinsic assembly functions need to be firewalled with #if defined( USE_INTRINSICS ) so they can be turned off by CMake.
So it should be
#if defined( USE_INTRINSICS )
#if defined( __AVX__ )
your code
#else
id Software old SSE code
#endif
#endif
This PR includes support for AVX for some of the more expensive functions in the profiler. I planned to vectorize many more functions but this fell off my plate. For now, this shows some measurable improvement (though I don't recall exactly how much - I remember the functions basically disappearing in perf after doing this).