Added NvOptimusEnablement and AmdPowerXpressRequestHighPerformance exports to sfml-main to inform the driver that the SFML application could benefit from using the discrete GPU in a multi-GPU environment.

This commit is contained in:
binary1248 2015-04-18 21:29:55 +02:00 committed by Lukas Dürrenberger
parent 4f3c26660e
commit 221e0700f7

View File

@ -41,6 +41,13 @@
#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[]);