I'm working on a JavaFX animation which uses the AnimationTimer()
class. It should work at 60 fps by default, according to all possible sources. However, on my laptop it refreshes at much higher rates: 300 - 700, depending on the window size. I use IntelliJ IDEA Community Edition, and the Oracle JDK8 on Manjaro Linux GNOME Edition. I've already given a try to other JDKs - still the same situation. It behaves as if the JVM option javafx.animation.fullspeed
was set true, but it's not. Same happens on a different machine, also running Manjaro GNOME edition.
I tried (undocumented) JVM options:
javafx.animation.fullspeed=false | true
javafx.animation.framerate=value
javafx.animation.pulse=value
They change nothing, even if Settings.get(key)
returns values as set.
On another, Windows 10-powered computer, FPS behaves correctly: keeps 60 value on default/none VM options, runs full speed when javafx.animation.fullspeed=true
, as well on Windows, as on Manjaro / VirtualBox.