And what is connected with this, is there a way to force Java FX to use hardware acceleration and a bomb if it cannot?
Just found out:
You can run with -Dprism.verbose=truewhich will print which graphics pipeline it uses. "sw" or "j2d" for software and "d3d" or "es2" for hardware acceleration.
-Dprism.verbose=true
You can also try this hack.
@SuppressWarnings("restriction") static String getCurrentGraphicsPipeline() { return com.sun.prism.GraphicsPipeline.getPipeline().getClass().getName(); }
"com.sun.prism.sw.SWPipeline", . , , , .
"com.sun.prism.sw.SWPipeline"
If you use eclipse as an IDE, you need to pass these arguments to VM. You can add these VM arguments to the runtime configuration.
Put these arguments: -Dprism.verbose=true