Re: ? JOGL Rendering Issues - Different for v1.1.1 and v2.0 and with Laptop docked vs not ?
Posted by Z-Knight on Mar 10, 2016; 6:01pm
URL: https://forum.jogamp.org/JOGL-Rendering-Issues-Different-for-v1-1-1-and-v2-0-and-with-Laptop-docked-vs-not-tp4036458p4036463.html
How can I display which GPU is being used?
The problem with you assertion about the possible different GPU is that if I run this with JOGL v2.0 DOCKED it works, if I keep that same program running and then UNDOCK the machine and start the second instance, then only the second instance does not work. Which is what you see in the main screenshot. So once I've undocked, I now have two instances running, yet the one that was started while I was DOCKED works fine, but the one that is started UNDOCKED does not work. SO, how can the GPU be the issue when on one screen I have both versions running and only one is bad and the other good. If undocking changed GPUs then the instance that I started while DOCKED should now be bad as well. I mean, it's not like one GPU is being used to render one view and the second GPU is rendering the other one - only one GPU is active at a time.
And, as I said, this does NOT happen with JOGL 1.1.1 - and the only difference in that code is changing from GL to GL2, no other code changes.
It seems more realistic to me, that when you start up on one mode (say DOCKED), JOGL v2.0 configures itself based on what the capabilities/settings, etc are for that configuration. When you then switch configurations (i.e. go to UNDOCKED mode), if a JOGL application is still running then it doesn't change any of its capabilities/settings, but if you start a new one then it uses the newest capabilities/settings - and for some reason the UNDOCKED capabilities/settings are causing a problem.
and yes, as I said, I need to upgrade to the latest JOGL 2.0+ and I'm about to do that now. Thanks for the thoughts - as always, Julien, I know i can count on you. Merci.