[plt-scheme] flicker problem in a game coded with Dr.Scheme

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Nov 26 15:05:55 EST 2002

At Tue, 26 Nov 2002 13:42:17 -0500, "Francis Lavigne" wrote:
> My problem seams to be caused by the clearing of the entire windows
> (or canvas) just before drawing the updated bitmap.  I tried just to
> redraw the updated section of the canvas but because I need to send a
> refresh command to the canvas to see the new bitmap, the whole
> windows is cleared and then the flickering occurs...  I didn't find
> anything on windows refreshing or something connected to it.  I just
> hope that the problem is not caused by XP.

I think the problem is that `refresh' is clearing the screen. Probably
there should be a flag to disable that clearing.

Meanwhile, what if you call the `on-paint' method of the canvas


Posted on the users mailing list.