Is it possible to conditionally compile with /arch:AVX2 only if the CPU of the build system supports this set of instructions in Visual Studio?
After a quick Wikipedia check, I noticed that most of Intel's CPUs after 2011 (no Pentium and no Celeron) and of AMD's CPUs after 2013 seem to support AVX2. So I suppose for high rendering purposes it is still quite conservative to use /arch:AVX2 instead of /arch:SSE2? Or am I really cutting off a big part of the cake (I only care about x86/x64, not ARM/ARM64)?