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?