Squeak logo eye

Karl Ramberg karl.ramberg at chello.se
Mon May 7 06:14:50 UTC 2001



"Raab, Andreas" wrote:
> 
> Karl,
> 
> I just realized that there's a really trivial little speedup (close to a
> factor of two) for the Squeak logo (never really looked into it before):
> 
> FlashMorph>>fullDrawOn: aCanvas
>         | myCanvas |
>         aCanvas isBalloonCanvas ifTrue:[^super fullDrawOn: aCanvas].
>         myCanvas _ aCanvas asBalloonCanvas.
>         myCanvas deferred: true.
>         super fullDrawOn: myCanvas.
>         myCanvas flush.
> 
> Makes the time to draw the squeak logo on my machine drop by roughly 45%
> (from 34.8 msecs per frame to 19.05 msecs per frame).
> 

Much snappier now :-)

Karl





More information about the Squeak-dev mailing list