Forráskód Böngészése

add high performance gpu runtime detection

Nicolas Cannasse 8 éve
szülő
commit
453728006c
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/main.c

+ 5 - 0
src/main.c

@@ -84,6 +84,11 @@ static int throw_handler( int code ) {
 	}
 	}
 	return EXCEPTION_CONTINUE_SEARCH;
 	return EXCEPTION_CONTINUE_SEARCH;
 }
 }
+
+// this allows some runtime detection to switch to high performance mode
+__declspec(dllexport) DWORD NvOptimusEnablement = 1;
+__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
+
 #endif
 #endif
 
 
 #ifdef HL_WIN
 #ifdef HL_WIN