Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!elroy.jpl.nasa.gov!aero-c!gumby.dsd.trw.com!deneva!news From: blanford@spf.trw.com (Ronald P. Blanford) Newsgroups: comp.sys.next Subject: Re: How do you draw lines into the current view for Rubberbanding Message-ID: <28467CDF.5148@deneva.sdd.trw.com> Date: 31 May 91 16:42:06 GMT References: <4043@ssc-bee.ssc-vax.UUCP> Sender: news@deneva.sdd.trw.com Organization: TRW Inc., Redondo Beach, CA Lines: 10 In article <4043@ssc-bee.ssc-vax.UUCP> dmg@ssc-vax (David M Geary) writes: > If all you want to do is rubber-banding without the flicker, > why allocate an off-screen buffer for the *entire* window? > Instead, why not allocate 4 buffers,each of which is one pixel > wide by screen width (or height) long: I didn't want to jump in earlier since I didn't do the work and am not familiar with the code, but one of our applications implements a Rubberband class using just this technique. Besides reducing flicker, it improved performance by an order of magnitude.