-
Notifications
You must be signed in to change notification settings - Fork 116
JavaFX
Kay Kasemir edited this page May 14, 2020
·
8 revisions
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.
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.