DemoFX - JavaFX examples / benchmarking framework
Chris Newland
cnewland at chrisnewland.com
Mon Mar 9 09:12:02 UTC 2015
Hi Benjamin,
Thanks :)
I'll definitely be looking at scene graph when I do some 3D effects.
Cheers,
Chris
@chriswhocodes
On Mon, March 9, 2015 08:36, Benjamin Gudehus wrote:
> 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 <cnewland at chrisnewland.com>
> 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
>>
>>
>>
>
More information about the openjfx-dev
mailing list