Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uxe.cso.uiuc.edu!leonardr From: leonardr@uxe.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Re: Text Drawing at speeds in excess of Message-ID: <226000053@uxe.cso.uiuc.edu> Date: 17 Jan 89 16:53:00 GMT References: <2220@uokmax.UUCP> Lines: 32 Nf-ID: #R:uokmax.UUCP:2220:uxe.cso.uiuc.edu:226000053:000:1793 Nf-From: uxe.cso.uiuc.edu!leonardr Jan 17 10:53:00 1989 grg@berlin.acss.umn.edu(* *) writes in comp.sys.mac.programmer >Here's how to speed up your serial I/O to screen. I wish Red Ryder and >Microphone were listening. > >(1) Don't use drawchar. There's too much overhead in drawing 1 char at a time.Try gathering 5-20 chars at a time and then drawing them all at once with >DrawText or DrawString. This should help a lot. You'll need to special >case the processing of control characters and escape sequences though. You'll >also need a timeout to flush the last 5-20 characters. A bit messy but this >is the only way you can go above 1200 baud on a plain Mac. > >(2) You then may find the bottleneck is in scrolling the screen. You can >speed this up by scrolling up several lines at a time. This is somewhat ugly >but at 9600 baud the eye can barely tell if you're scrolling 1 line or 3 lines >at a time. Well as one of the authors of MicroPhone II, I can say that not only have we been listening but if you look closely you will see that the current shipping version of MicroPhone II does both of the above. +---------------------------------+-----------------------------------+ + + Any thing I say may be taken as + + Leonard Rosenthol + fact, then again you might decide+ + President, LazerWare, inc. + that it really isn't, so you + + + never know, do you?? + + leonardr@uxe.cso.uiuc.edu + + + GEnie: MACgician + MacNET: MACgician + + Delphi: MACgician + AppleLink: D0025 + + + + +---------------------------------+-----------------------------------+