Crazy JavaFX frame rate - any ideas?

Viewed 653

JavaFX with a crazy frame rate?

I was giving a demo of different JavaFX animation options today. However, on the machine I used for the demo, the AnimationTimer behaves very strangely.

As I understand it, JavaFX is supposed to aim for a rate of around 60FPS, and the "handle" method of the animation timer is called before each frame. However, on this machine, the speed is immensely faster. I ran the diagnostic program from the accepted answer of this StackOverflow post, and it reports more than 1000FPS.

Environment: Ubuntu 16.04, Java 1.8.0_131

Any ideas what could be causing this problem and/or how to control it?

0 Answers
Related