Moved NvOptimusEnablement and AmdPowerXpressRequestHighPerformance out of sfml-main and into a macro the user can place in their own translation unit when they need it. Fixes #1192
This commit is contained in:
parent
ee957f3420
commit
cd1387479e
4 changed files with 83 additions and 8 deletions
|
@ -41,14 +41,6 @@
|
|||
|
||||
#include <windows.h>
|
||||
|
||||
// Inform the Nvidia/AMD driver that this SFML application could
|
||||
// benefit from using the more powerful discrete GPU
|
||||
extern "C"
|
||||
{
|
||||
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
||||
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||
}
|
||||
|
||||
extern int main(int argc, char* argv[]);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue