*/}}
Browse Source

Win32 prefer discrete graphics

YimingWu 7 months ago
parent
commit
8f39ae9549
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ourpaint.c

+ 5 - 0
ourpaint.c

@@ -22,6 +22,11 @@ extern LA MAIN;
 extern tnsMain* T;
 extern OurPaint *Our;
 
+#ifdef _WIN32
+__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
+__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
+#endif
+
 int main(int argc, char *argv[]){
     if(ourProcessInitArgs(argc,argv) < 0){ return 0; }
     laInitArguments ia={0}; laSetDefaultInitArguments(&ia);