Only Integrated GPU is used

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Only Integrated GPU is used

g_bertalan
I have a GLCanvas in a JFrame.
When I run the application, the integrated GPU works only, the dedicated GPU is doing nothing.

I suspect it is because my window is not a true fullscreen window even if I set the size of it to my screen size or if I use device.setFullScreenWindow(frame).
I guess if I could set it to true fullscreen, the dedicated GPU would take over.

Anyone knows what I could do?
Maybe to use GLWindow instead of GLCanvas?

I was planning to use Swing, but I guess being able to use the better GPU would be the priority.
Reply | Threaded
Open this post in threaded view
|

Re: Only Integrated GPU is used

gouessej
Administrator
Hello

We don't expose any vendor specific extension allowing to modify the GPU affinity, you have to force the use of the high performance profile by yourself in the setup of your laptop. We don't support Optimus and similar mechanisms.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Only Integrated GPU is used

sailsman63
In reply to this post by g_bertalan
If the automated load-switching is not supported, (Which it sounds like it is not)

You can force selection on launch using a native launcher via JNI (see https://www.developer.com/java/data/how-to-create-a-jvm-instance-in-jni.html ) and export certain C-language symbols.

See the following for the relevant symbols for the major card manufactureres:

http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf

https://community.amd.com/thread/169965

Note: This only works if the user has the dedicated GPU enabled (It can often be turned off in BIOS or system configuration settings)

It also means that your application will *Only* Use the dedicated GPU - it will not seamlessly switch for power conservation.