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:
parent
4f3c26660e
commit
221e0700f7
@ -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[]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user