Main: Request us to be run on dedicated GPU
This commit is contained in:
		
							parent
							
								
									1445381756
								
							
						
					
					
						commit
						6d5a021f04
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -42,6 +42,14 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __WINDOWS__
 | 
					#ifdef __WINDOWS__
 | 
				
			||||||
#include "resource.h"
 | 
					#include "resource.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Try to force dedicated GPU
 | 
				
			||||||
 | 
					// https://stackoverflow.com/a/39047129
 | 
				
			||||||
 | 
					extern "C"
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
 | 
				
			||||||
 | 
						__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "icon.png.xxd"
 | 
					#include "icon.png.xxd"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue