Permalink
Browse files

ensure floating point denormals aren't used, they can massively lag t…

…he air sim
  • Loading branch information...
jacob1 committed Feb 20, 2017
1 parent 08a7dfe commit ac8c01ae57d94f55a4d47c40c1f7491666b9e483
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/PowderToySDL.cpp
@@ -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 {

0 comments on commit ac8c01a

Please sign in to comment.