New JavaFX performance benchmark (DemoFX part III)

Chris Newland cnewland at
Thu Nov 10 08:38:04 UTC 2016

Hi all,

Hope not too off-topic but I've just released the 3rd version of my JavaFX
performance benchmark "DemoFX".

This time it exercises the PixelWriter (of Canvas and WriteableImage), the
spectral analyser (thanks for adding this!), and some 3D as well as
drawing on the Canvas.

It does use MediaPlayer.impl_getLatestFrame() to grab raw frames for the
chroma-key / green-screen effects so won't be compatible with JDK9 (I did
file RFE JI-9038459 for this but realise it's low priority).

The code is fairly unoptimised (but still runs 60fps on my 2011 iMac) but
I'm going to spend a bit of time looking at what the JIT gets up to and
come back with any suggestions.

Code is here: and a video here

Hopefully a useful showcase for JavaFX realtime graphics.


@chriswhocodes on Twitter

More information about the openjfx-dev mailing list