[net.micro.mac] Drawing characters fast

plei@ucla-cs.UUCP (06/13/85)

Can anyone tell me what is the fastest method to put a text character on the
screen? No text editing functions are required, just fast writes.

Thanks.

/Paul
plei@ucla.locus.arpa

darin@tmq.UUCP (Darin Adler) (06/16/85)

> Can anyone tell me what is the fastest method to put a text character on the
> screen? No text editing functions are required, just fast writes.

If you intend to draw directly to the screen using QuickDraw, there are two
routines that do the job.  DrawChar draws a single character.  DrawString draws
up to 255 at a time.  DrawString is MUCH faster than multiple DrawChar's.
The fastest drawing is done when the TextMode (for copying text) is set to
srcOr.  This means that the fastest way to get the ROM to print text is to
EraseRect an area of the screen and then to DrawString into that area in srcOr
mode.

Darin Adler
ihnp4!tmq!darin

dimitrov@csd2.UUCP (Isaac Dimitrovsky) (06/17/85)

[]
> Can anyone tell me what is the fastest method to put a text character on the
> screen? No text editing functions are required, just fast writes.

Didn't someone mention using Copybits earlier? I would honestly like to
know if this is fastest, so could someone with more knowledge than I tell us?

Isaac Dimitrovsky

dave@rocksvax.UUCP (06/17/85)

I would be interested also, it seems that tekey() is very slow.  Maybe
I am doing something wrong but is that it is the only way to paint chars to the
screen.  Every other program seems to paint them there much faster!!  I would
like to have the edit functions work also, but then I want everything-:)!

Dave

arpa: Sewhuk.HENR@Xerox.ARPA
uucp: {allegra,ihnp4,rochester,amd,sunybcs}!rocksvax!dave