mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 21:50:18 +02:00
ensure floating point denormals aren't used, they can massively lag the air sim
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user