ensure floating point denormals aren't used, they can massively lag the air sim
This commit is contained in:
parent
08a7dfebea
commit
ac8c01ae57
@ -8,6 +8,8 @@
|
||||
#include <direct.h>
|
||||
#endif
|
||||
#include "SDLCompat.h"
|
||||
#include <xmmintrin.h>
|
||||
#include <pmmintrin.h>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
@ -1082,6 +1084,9 @@ int main(int argc, char * argv[])
|
||||
signal(SIGABRT, SigHandler);
|
||||
#endif
|
||||
|
||||
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
||||
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
|
||||
|
||||
GameController * gameController = NULL;
|
||||
#if !defined(DEBUG) && !defined(_DEBUG)
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user