Integrated vs. Discrete Graphics on OS X
mike at plan99.net
Tue May 26 11:36:48 UTC 2015
The relevant Apple dev doc is here:
Essentially it involves setting flags on the GL pixel format. Then you can
receive a callback from the OS either via NSOpenGLView or an old C style
callback which tells you that the active GPU has changed. I haven't read
the JFX Mac GL code so I don't know what APIs it's using. In the callback
you are meant to re-query GL capabilities and redraw, I think.
There's also some extra work required if you use pbuffers or GL textures
instead of framebuffer objects. I don't know which JFX uses.
More information about the openjfx-dev