Re: re: TrueType font support and 3.6
Tim Rowledge <[email protected]> Fri, 20 Jun 2003 20:40:47 -0700
| Newsgroups | gmane.comp.lang.smalltalk.squeak.foundation |
|---|---|
| Message-ID | <[email protected]> |
Ned Konz <[email protected]> wrote: > Try this to see how fast your machine renders the characters: > > string := String withAll: ((Character value: 0) to: (Character value: > 255)). > TTCFont recreateCache. > time := (Time millisecondsToRun: [ TTCFont allInstancesDo: [ :f | f > widthOfString: string ]]) / TTCFont allInstances size. > time := time / 256.0. 27.9 :-( tim -- Tim Rowledge, [email protected], http://sumeru.stanford.edu/tim Fractured Idiom:- VENI, VIDI, VICE - I came, I saw, I partied. From [email protected] Sat Jun 21 03:50:14 2003 Return-Path: <[email protected]> Delivered-To: [email protected] Received: (qmail 22065 invoked from network); 21 Jun 2003 03:50:13 -0000 Received: from mail531.nifty.com (202.248.37.220) by mail.theinternetone.net with SMTP; 21 Jun 2003 03:50:13 -0000 Received: from YOSHIKI-T2.mb.infoweb.ne.jp (66-214-136-65.gln-eres.charterpipeline.net [66.214.136.65])by mail531.nifty.com with ESMTP id h5L3o8dw006017; Sat, 21 Jun 2003 12:50:09 +0900 Date: Fri, 20 Jun 2003 20:50:05 -0700 Message-ID: <[email protected]> From: [email protected] To: Discussing the Squeak Foundation <[email protected]> Subject: Re: [Squeakfoundation]re: TrueType font support and 3.6 In-Reply-To: <[email protected]> References: <[email protected]> <[email protected]> <[email protected]> User-Agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.5 Emacs/20.7 (i386-msvc-nt5.1.2600) MULE/4.1 (AOI) Meadow/1.15 (SHOUBU:63) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-BeenThere: [email protected] X-Mailman-Version: 2.1 Precedence: list Reply-To: Discussing the Squeak Foundation <[email protected]> List-Id: Discussing the Squeak Foundation <squeakfoundation.lists.squeakfoundation.org> List-Unsubscribe: <http://lists.squeakfoundation.org/listinfo/squeakfoundation>, <mailto:[email protected]?subject=unsubscribe> List-Archive: <http://lists.squeakfoundation.org/pipermail/squeakfoundation> List-Post: <mailto:[email protected]> List-Help: <mailto:[email protected]?subject=help> List-Subscribe: <http://lists.squeakfoundation.org/listinfo/squeakfoundation>, <mailto:[email protected]?subject=subscribe> X-List-Received-Date: Sat, 21 Jun 2003 03:50:14 -0000 Hello, > Try this to see how fast your machine renders the characters: > > string := String withAll: ((Character value: 0) to: (Character value: > 255)). > TTCFont recreateCache. > time := (Time millisecondsToRun: [ TTCFont allInstancesDo: [ :f | f > widthOfString: string ]]) / TTCFont allInstances size. > time := time / 256.0. > > On my 900 MHz Transmeta machine, I get about 1.45 milliseconds per > character. On my 1200 MHz Duron desktop, I get about 0.70 > milliseconds per character. On my Centrino 900MHz, it is about 0.61. Needless to say, this test includes the "extra large size" fonts. For the normal size characters the speed is about twice as fast. If you get the MessageTally, 70% of time goes to the BalloonEngine>>copyLoopFaster. This is why I think Arjen's new BB combinationRule will help here a lot. -- Yoshiki From [email protected] Sat Jun 21 06:33:14 2003 Return-Path: <[email protected]> Delivered-To: [email protected] Received: (qmail 7690 invoked from network); 21 Jun 2003 06:33:14 -0000 Received: from mailhub02.unibe.ch (130.92.9.53) by mail.theinternetone.net with SMTP; 21 Jun 2003 06:33:14 -0000 Received: from localhost (localhost [127.0.0.1]) by mailhub02.unibe.ch (Postfix) with ESMTP id D682A76419 for <[email protected]>; Sat, 21 Jun 2003 08:33:13 +0200 (MEST) Received: from mailhub02.unibe.ch ([127.0.0.1]) by localhost (mailhub02 [127.0.0.1:10024]) (amavisd-new) with LMTP id 16132-01-52 for <[email protected]>; Sat, 21 Jun 2003 08:33:13 +0200 (MEST) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub02.unibe.ch (Postfix) with ESMTP id 2969376405 for <[email protected]>; Sat, 21 Jun 2003 08:33:13 +0200 (MEST) Received: from iam.unibe.ch (asterix [130.92.64.4]) by asterix.unibe.ch (8.11.6+Sun/8.11.6) with ESMTP id h5L6XCK24064 for <[email protected]>; Sat, 21 Jun 2003 08:33:12 +0200 (MET DST) Date: Sat, 21 Jun 2003 08:33:12 +0200 Subject: Re: [Squeakfoundation]re: TrueType font support and 3.6 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Stephane Ducasse <[email protected]> To: Discussing the Squeak Foundation <[email protected]> Content-Transfer-Encoding: 7bit In-Reply-To: <[email protected]> Message-Id: <[email protected]> X-Mailer: Apple Mail (2.552) X-Virus-checked: by University of Berne X-BeenThere: [email protected] X-Mailman-Version: 2.1 Precedence: list Reply-To: Discussing the Squeak Foundation <[email protected]> List-Id: Discussing the Squeak Foundation <squeakfoundation.lists.squeakfoundation.org> List-Unsubscribe: <http://lists.squeakfoundation.org/listinfo/squeakfoundation>, <mailto:[email protected]?subject=unsubscribe> List-Archive: <http://lists.squeakfoundation.org/pipermail/squeakfoundation> List-Post: <mailto:[email protected]> List-Help: <mailto:[email protected]?subject=help> List-Subscribe: <http://lists.squeakfoundation.org/listinfo/squeakfoundation>, <mailto:[email protected]?subject=subscribe> X-List-Received-Date: Sat, 21 Jun 2003 06:33:14 -0000 Just a note about performance. Alex went in roumania to teach Smalltalk and he tried to use squeak but could not with a normal image. It took then a 2.8 shrunk image. So performance is still important. Stef On Saturday, June 21, 2003, at 04:02 AM, Tim Rowledge wrote: > Doug Way <[email protected]> wrote: > >> Andreas Raab wrote: >> >>> Completely agree. >>> >>> BTW, Tim, does *installing* or *using* the TT fonts slow your system >>> down? > It's the using, which as you say isn't totally unexpected. Oddly enough > it seems fine in menus _after_ the first time the menu is popped up > (presumably the initial rendering) but in text panes it's _really_ > slow. > As Craig says, it's ok on his machine (I've seen it) but my machine is > about one third the performance overall and when on the margin a factor > of three can seem enormous. Typing in a morph is already excruciating > even with boring strikefonts. > > Seeing things like this on a slow machine can be very useful and > informative. Stuff that appears just fine on a multi-GHz box can > actually be awful code simply 'getting away with murder' and then you > see the real effect on a slower machine... It's the old scaling problem > and benchmarks and profiling story. > > So an obvious question has to be what is the more expensive rendering > and does it really have to be used - or could a simpler one be a > preference at the expense of a little quality? Or can the expensive one > be sped up with more plugin code? > >> >> Right. Assuming it's using (not just installing) the TT fonts that >> slows things down on slower systems, we could incorporate the TT fonts >> changes, but not actually change any of the default fonts to be TT >> fonts >> for now. (Maybe change a default font to be a TT font sometime in 3.7 >> if it's working really well.) > I'd certainly agree with that. The fonts look too good to not be > available for most people. I think to be actually useful we need to put > together some better thought out textstyles than typically get > generated > by 'load a TTF as textstyle' though. And a theme that incorporates them > in one go would be helpful, as would another than doesn't incorporate > them. Make it truly easy to use and people will use it. > > tim > -- > Tim Rowledge, [email protected], http://sumeru.stanford.edu/tim > Useful random insult:- A mental midget with the IQ of a fencepost. -- > Tom Waits > _______________________________________________ > Squeakfoundation mailing list > [email protected] > http://lists.squeakfoundation.org/listinfo/squeakfoundation >