Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the FPS from a JavaFX scene?

I am currently writing a small graphical performance test benchmark for JavaFX.

Thus, I need to get the current FPS at which the JavaFX scene is being refreshed.

So far, I haven't found a solution how to accomplish this.

Does anyone know if there is some kind of event that I could use in order to get the FPS?

like image 882
Timo Ernst Avatar asked Nov 24 '25 00:11

Timo Ernst


1 Answers

I don't think there is a specific event that gives a frame rate. This reference/example might help. It shows the frame rate when running -- JavaFX FPS Meter . It has a link to source code.

like image 178
Refactor Avatar answered Nov 27 '25 02:11

Refactor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!