🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #1238

Re: Quickdraw efficiency question

#1238
From: Amanda Walker
Date: Tue, 11 Jul 1989 17:35
21 lines
1433 bytes
In article <1681@neoucom.UUCP>, sam@neoucom.UUCP (Scott A. Mason) writes:
> Intuitively, I would think that DrawString would be faster, but then again,
> doesn't DrawString make repeated calls to DrawChar?  BTW, I want to do this
> for a terminal emulation program, and want maximum screen drawing speed.
> 
> While I'm at it, how does Mackermit achieve such speedy screen drawing??

Building a string and drawing it with DrawString (or DrawText) is *much*
faster.  This is what MacKermit does.  This is one case where your initial
intuition about which would be faster is wrong.  As it turns out, DrawChar
is done by drawing a string of 1 character...

One of the reasons for the speedup is that the font information is retrieved
once per string, so the fewer times this is done, the faster the text shows
up.

--
Amanda Walker
InterCon Systems Corporation
--
amanda@intercon.uu.net  |  ...!uunet!intercon!amanda
Technical Details
Message-ID: <1167@intercon.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!intercon!amanda@intercon.uu.net
References: <1681@neoucom.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!intercon!amanda@intercon.uu.net
From: amanda@intercon.uu.net (Amanda Walker)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: Re: Quickdraw efficiency question
Message-ID: <1167@intercon.UUCP>
Date: 11 Jul 89 17:35:51 GMT
References: <1681@neoucom.UUCP>
Sender: news@intercon.UUCP
Reply-To: amanda@intercon.uu.net (Amanda Walker)
Organization: InterCon Systems Corporation
Lines: 21