Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!orstcs!jasmerb From: jasmerb@orstcs.CS.ORST.EDU (Bryce Jasmer) Newsgroups: comp.sys.mac.programmer Subject: flicker-free drawing Keywords: Scott Knaster (god!) Message-ID: <5727@orstcs.CS.ORST.EDU> Date: 25 Jul 88 07:11:35 GMT Organization: CS Dept, Oregon State University, Corvallis Lines: 19 I am writing a DA that needs to have flicker free drawing so I found and decided to use Scott Knaster's trick of letting the Tickcount change before drawing. Here is the code: ----- aLong:=tickcount; while aLong = tickcount do ; EraseRect( {about 50 x 10 pixels} ); DrawString( {about 10-12 characters (9 point)} ); ----- It works great while the small window is at the bottom of my screen but flickers more and more the closer you move the window to the top of the screen. Since it is a DA, I am requesting my DA get a slice of time every 1/60 of a second. What should I do? Bryce Jasmer jasmerb@jacobs.cs.orst.edu