Bug 930 : OPENGL mode sketches flicker on Vista when background() is not used inside draw()
Last modified: 2008-11-19 14:53




Status:
ASSIGNED
Resolution:
-
Priority:
P3
Severity:
normal

 

Reporter:
jorge.regular
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-09-23 11:04
Whenever i put the background command in setup() and used the OpenGl mode
the sketches keep flickering.

import processing.opengl.*;
void setup(){
size(200,200,OPENGL);
background(255);
//flickering does not occur when set to 0
}
void draw(){
}

Info:
- tried with 0135,0144,0148 both Java-integrated and without Java
- using java 1.6

SystemInformation:
Vista Home Premium SP1,64 Bit
Quad Core Q9300 2.5 GHz
8 GB RAM
NVIDIA GeForce 9800 GT,512 MB

thanks
jorge
Additional Comment #1 From peterkirn 2008-11-13 12:30
Yep, I can confirm this. The issue seems to be the way Vista redraws when
used with the background command. If you put background() in draw (or
otherwise paint to the screen), it resolves the issue. Of course, people do
routinely leave background out for special effects, which now won't work.
Additional Comment #2 From fry 2008-11-13 15:20
Confirmed, and also appears to only affect Vista. I just saw this on my
Vista laptop this week, but my other XP machines don't have the same problem.

The issue has to do with OpenGL's buffer swapping mechanisms, and perhaps
that Vista is making use of OpenGL or other fancy graphics techniques and
not playing nice. I wouldn't be surprised if turning off some of the Vista
visual effects (I don't recall exactly what they call it) may fix the problem.
Additional Comment #3 From jorge.regular 2008-11-14 08:18
Ah, ok turned off aero scheme, back to classic and everything works fine.
Thanks for the hint!

Jorge
Additional Comment #4 From jorge.regular 2008-11-19 14:53
Oh, i was wrong it didnĀ“t fix the problem...any hint?

Sorry
Jorge
This bug is now being tracked here.