Is there a way to detect if Java FX is using hardware acceleration?
问题 And related to that, is there a way to force Java FX to use hardware acceleration and bomb if it is unable to? 回答1: Just found out: You can run with -Dprism.verbose=true which will print what graphics pipeline it uses. "sw" or "j2d" for software and "d3d" or "es2" for hardware accelerated. 回答2: You can also try this hack @SuppressWarnings("restriction") static String getCurrentGraphicsPipeline() { return com.sun.prism.GraphicsPipeline.getPipeline().getClass().getName(); } If you get back "com