Re: Initializing JOGL with NVidia Optimus systems
Posted by aqd on Jul 04, 2014; 8:09pm
URL: https://forum.jogamp.org/Initializing-JOGL-with-NVidia-Optimus-systems-tp4028794p4032523.html
I was wondering if Java.exe is blocked from using nvidia optimus, but it's not. Also I could force JOGL to use optimus if I start a javaFX app first and then create JOGL canvas from it, but the performance seems the same (as Intel HD).
EDIT: I confirmed that it does work if I start JavaFX before JOGL in the same app. My app is based on Eclipse RCP, so I have to start a view containing JavaFX scene (no content) to activate nVIDIA Optimus, then start windows containing JOGL canvas, which will then be rendered by Optimus while the JavaFX view is visible (closing JavaFX Scene will turn off Optimus immediately). The performance is correct, though vertical sync seems to be enforced inside the app, hence the low FPS.