Built standalone javafx bundled application.
Modified Info.plist, adding
NSSupportsAutomaticGraphicsSwitching set to true
which is supposed to allow me to choose between Integrated vs Dynamic GPU selection according to https://developer.apple.com/library/mac/qa/qa1734/_index.html
gpu rendering (Dynamic) causes the program to crash after a time, so I need to try Integrated.
I can see the the application is using Dynamic by starting "Activity Monitor", selecting the "Energy" tab, and seeing "Yes" in the column "Requires High Perf GPU".
My javafx application is the only applicaiton with a "Yes" in the column "Requires High Perf GPU", and prevent me from switching to "Integrated".
Sometimes the javafx program will not end, and I must reboot.