API Review RT:17407 Canvas Node

Dr. Michael Paus mp at jugs.org
Wed Apr 25 01:38:28 PDT 2012


Am 25.04.2012 10:03, schrieb Jim Graham:
>
> Hmmm...  More variants of Canvas or more attributes to set...?
>
I was just thinking about potential use-cases for the canvas node and 
stumbled over the
following question. How can I still provide a super-smooth GUI if I have 
a canvas drawing
which lasts longer than the interval between two pulses. Maybe it even 
lasts more than
a second. My understanding of the current canvas design proposal is that 
when I redraw
the canvas, for whatever reason, the GUI is basically blocked for this 
time. Is that true?

If the above interpretation is right I would like to propose a 
modification of the design
which makes it possible to have a double buffer canvas where the 
currently active
buffer is redrawn whenever the JavaFX runtime needs to redraw the node 
and where
I can render into the second buffer from ANY thread at any time without 
disturbing the
smoothness of the GUI. When I am done with the rendering I just signal a 
buffer switch
and with the next pulse the new buffer is shown.

What do you think?

Michael

-- 
--------------------------------------------------------------------------------------
Dr. Michael Paus, Chairman of the Java User Group Stuttgart e.V. (JUGS).
For more information visit www.jugs.de.



More information about the openjfx-dev mailing list