It gave me a big headache, but it's so cool looking at it that I could not stop! :)
Thanks for bringing back memories ;) Cheers, Mario 2015-03-09 9:36 GMT+01:00 Benjamin Gudehus <[email protected]>: > Hi Chris, > > that's amazing. Would it be possible in the future to allow both Canvas and > Shapes (in a Scene graph)? > > --Benjamin > > > On Mon, Mar 9, 2015 at 9:11 AM, Chris Newland <[email protected]> > wrote: > >> Hi all, >> >> I've put together a little framework called DemoFX and a few "demoscene" >> graphical effects for measuring JavaFX performance: >> >> https://github.com/chriswhocodes/DemoFX >> >> Here's a YouTube video of some of the effects I've developed: >> >> https://www.youtube.com/watch?v=N1rihYA8c2M (watch in HD if you can) >> >> There's an abstract base class that takes care of the setup and measures >> frame rate and time spent in the render() method so developing new effects >> is quite easy. I plan to add some text-based effects and also some 3D >> stuff. >> >> It's all Canvas based and the effects are rendered with calls to >> GraphicsContext. It seems to run at 60fps on modern hardware with the >> ES2Pipeline (once it's run enough loops for the JIT compilers to do their >> thing). >> >> I think I've already found one JavaFX performance problem: >> >> GraphicsContext's strokePolygon(pointsX, pointsY, count) has about half >> the performance of the equivalent set of strokeLine(x1, y1, x2, y2) >> commands. >> >> Example (after building DemoFX with ant) >> >> ./run.sh -m line >> vs >> ./run.sh -m poly >> >> Will do a full write-up later. >> >> Cheers, >> >> Chris >> @chriswhocodes >> >> -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF Java Champion - Blog: http://neugens.wordpress.com - Twitter: @neugens Proud GNU Classpath developer: http://www.classpath.org/ OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/
