Re: Initializing JOGL with NVidia Optimus systems
Posted by
Xerxes Rånby on
Dec 28, 2014; 8:55pm
URL: https://forum.jogamp.org/Initializing-JOGL-with-NVidia-Optimus-systems-tp4028794p4033818.html
The official solution:
http://docs.nvidia.com/gameworks/content/technologies/desktop/optimus.htm"Global Variable NvOptimusEnablement (new in Driver Release 302)
Starting with the Release 302 drivers, application developers can direct the Optimus driver at runtime to use the High Performance Graphics to render any application —- even those applications for which there is no existing application profile. They can do this by exporting a global variable named NvOptimusEnablement. The Optimus driver looks for the existence and value of the export. Only the LSB of the DWORD matters at this time. A value of 0x00000001 indicates that rendering should be performed using High Performance Graphics. A value of 0x00000000 indicates that this method should be ignored.
Example Usage:
extern "C" {
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
.. _global_profile_settings:
"
I have posted a bugreport to
Force high performance GPU for Nvidia Optimus systems
https://jogamp.org/bugzilla/show_bug.cgi?id=1113