Path: utzoo!attcan!uunet!munnari!uniwa!vaxa!d_volaric From: d_volaric@vaxa.uwa.oz Newsgroups: comp.sys.mac.programmer Subject: Re: Text Drawing at speeds in excess of 1200baud Message-ID: <568029@vaxa.uwa.oz> Date: 16 Jan 89 21:49:30 GMT References: <2220@uokmax.UUCP> Organization: University of Western Australia Lines: 33 In article <2220@uokmax.UUCP>, srpenndo@uokmax.UUCP (Sean Richard Penndorf) writes: > > I am writing a terminal program in LSP, and in my development have found > that the DrawChar routine bogs down when you are connected at speeds > greater than 1200baud. My ultimate goal is to be able to write to the > screen at 2400baud. > > I have tried saving the font being used in a BitMap, then stamping it to > the screen with CopyBits. I have also tried using DrawText, and the lower > level routine StdText (?). So far, everything I have tried bogs down > at 2400baud. > > Does anyone out there in NetLand have any clues to what I can try? Any > comments at all will be greatly appreciated. Thanks in advance. > > Sean I don't know if you are doing so already, but I would buffer the text coming from the serial port and then use DrawText to draw a bunch of characters at the same time. I doubt whether DrawText of say, 10 characters is slower that 10 characters at 2400 baud. I would check the buffer every few ticks (60ths of a second) and draw it to the screen if there is anything there. I think "every few ticks" should be less than the time it takes for a person to type a character (10 ticks?) so that characters apear when the user types them. If you are into high-adventure you could use a VBL task. ( If DrawText is too slow, write your local congressman and/or Apple Systems Programmer :-) ) I hope this is some help. Darko "Yes, it is my real name" Volaric Disclaimer: These opinions are my own. I am only freeloading off the uni.