[plt-scheme] Flicker-free redrawing of canvas

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue May 31 09:05:31 EDT 2005

At Tue, 31 May 2005 05:44:19 -0700 (PDT), Noel Welsh wrote:
> I'm implementing Pacman using MrEd, so I can try out some
> AI ideas on top of it.  It works, but the screen flickers
> horribly.  Clearly this yields unacceptable working
> conditions for my AI.  I've tried using double buffering --
> drawing to an off screen bitmap% and then dumping that
> bitmap to the canvas's dc<%> using the draw-bitmap method. 

Does it help to provide the 'no-autoclear style when creating the
canvas% instance (along with dubble-buffering)?

Matthew



Posted on the users mailing list.