drawImage in Java applet flickers in Safari

Posted by lcvinny on Stack Overflow See other posts from Stack Overflow or by lcvinny
Published on 2009-03-09T18:57:50Z Indexed on 2010/04/19 4:03 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

I'm having a flicker problem in a Java applet in Safari (Mac). However, it's not the usual double buffering problem.

I have isolated it down to one single drawImage call (no redundant repaint, no clear is called), which gives a white flicker before painting the image but not on every repaint. In fact, I measured the duration of the drawImage call, which is normally about 1ms, but up to 30ms about every 5th time paint is called, which is when it flickers. Repaints are triggered when I drag a component or when the window is scrolled.

Is this a bug in the java implementation on OSX, and is there a fix for it?

© Stack Overflow or respective owner

Related posts about java

Related posts about applet