-
Notifications
You must be signed in to change notification settings - Fork 116
JavaFX
JavaFX works best when it can use accelerated graphics and runs directly on a host.
Running via ssh -X might work, but will always be much slower.
Similarly, executing inside a VM tends to be slower.
On Linux, JavaFX uses GTK, and can run with either GTK 2 or GTK 3.
It will default to the newer version, but a specific version can be requested
via -Djdk.gtk.version=2 or -Djdk.gtk.version=3.
If for example drag/drop of panels acts erratically,
try running with -Djdk.gtk.version=2.
Starting the application with -Dprism.verbose=true and -Djdk.gtk.verbose=true
will show which graphics pipeline is used.
es2, the accelerated graphics pipeline, is good.
sw, the software pipeline, is slow
and should be avoided except in very rare cases like
https://github.com/ControlSystemStudio/phoebus/issues/512,
where -Dprism.order=sw can be used to enforce it.
Generally, setting -Dprism.forceGPU=true can help convince JavaFX to use the accelerated graphics hardware.