开发者

How to get the FPS from a JavaFX scene?

开发者 https://www.devze.com 2022-12-30 06:35 出处:网络
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.

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号