Initializing JOGL with NVidia Optimus systems
Posted by
Jesus Zazueta on
Mar 25, 2013; 2:50pm
URL: https://forum.jogamp.org/Initializing-JOGL-with-NVidia-Optimus-systems-tp4028794.html
Hello everyone.
I'm currently developing my application on a laptop which uses NVidia Optimus GPU switching between a GeForce GT640M LE and an Intel HD Graphics 4000 card under Windows Server 2012.
I just don't know how to setup JOGL in order to use the NVIDIA gpu. My application always defaults to the Intel card.
[main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL vendor: [Intel]
[main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL renderer: [Intel(R) HD Graphics 4000]
[main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL version: [4.0.0 - Build 9.17.10.2932]
[main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL Shading language version: [4.00 - Build 9.17.10.2932]
Doing some research I found out that one could use an NVIDIA specific extension called WGL_NV_gpu_affinity but I'm not sure if JOGL's WGL code is aware of such extension.
http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txtIs it even remotely possible to perform this device selection?
Thank you for your time and help!