ensure floating point denormals aren't used, they can massively lag the air sim

This commit is contained in:
jacob1 2017-02-19 19:29:41 -05:00
parent 08a7dfebea
commit ac8c01ae57

View File

@ -8,6 +8,8 @@
#include <direct.h> #include <direct.h>
#endif #endif
#include "SDLCompat.h" #include "SDLCompat.h"
#include <xmmintrin.h>
#include <pmmintrin.h>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
@ -1082,6 +1084,9 @@ int main(int argc, char * argv[])
signal(SIGABRT, SigHandler); signal(SIGABRT, SigHandler);
#endif #endif
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
GameController * gameController = NULL; GameController * gameController = NULL;
#if !defined(DEBUG) && !defined(_DEBUG) #if !defined(DEBUG) && !defined(_DEBUG)
try { try {