Hi,
I was reading Guy Romain’s article http://weblogs.java.net/blog/gfx/archive/2006/09/java2d_gradient.html about gradient paint performance and in the comments he mentioned java.awt.Toolkit.sync(), a method I haven’t come across. What does it do & where should I use it? The docs say it:
[quote]Synchronizes this toolkit’s graphics state. Some window systems may do buffering of graphics events.
This method ensures that the display is up-to-date. It is useful for animation.
[/quote]
and Romain said
[quote]Chris Campbell, from the Java2D team, kindly reminded me that timing the painting operation should be performed by calling Toolkit.sync() after each paint to ensure the drawing commands are flushed to the graphics card.
[/quote]
So does everyone call toolkit.sync() after rendering?
Thanks :),
Keith