Prefer the higher performance GPU on Windows systems that use nvidia optimus (resolves issue #984.)

This commit is contained in:
Alex Szpakowski
2015-02-02 16:29:58 -04:00
parent 2a09774a54
commit a84367ef38
+11
View File
@@ -39,6 +39,17 @@ extern "C" {
#include "OSX.h"
#endif // LOVE_MACOSX
#ifdef LOVE_WINDOWS
extern "C"
{
// Prefer the higher performance GPU on Windows systems that use nvidia Optimus.
// http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
// TODO: Re-evaluate in the future when the average integrated GPU in Optimus
// systems is less mediocre?
LOVE_EXPORT DWORD NvOptimusEnablement = 0x00000001;
}
#endif
#ifdef LOVE_LEGENDARY_UTF8_ARGV_HACK
void get_utf8_arguments(int &argc, char **&argv)