[ENH] Faster MVC window refresh
Hans-Martin Mosner
hm.mosner at cityweb.de
Thu Jul 22 13:15:58 UTC 1999
If you work in MVC most of the time and have a somewhat slow machine,
you might like this change. It uses Display>>deferRedraw: to buffer
window redraw operations until everything is complete and then blit it
to the actual display in one chunk. Makes MVC more visually pleasing and
a bit faster.
Hans-Martin
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="522A6368";
name="StandardSystem...eEmphasized.st"
Content-Transfer-Encoding: 7bit
Content-Description: Unknown Document
Content-Disposition: inline;
filename="StandardSystem...eEmphasized.st"
'From Squeak 2.4c of May 10, 1999 on 21 July 1999 at 12:55:09 pm'!
!StandardSystemView methodsFor: 'displaying' stamp: 'hmm 7/21/1999 07:37'!
displayDeEmphasized
"Display this view with emphasis off.
If windowBits is not nil, then simply BLT if possible,
but force full display for top window so color is preserved."
(bitsValid and: [controller ~~ ScheduledControllers activeController])
ifTrue: [self lock.
windowBits displayAt: self windowOrigin]
ifFalse: [Display deferUpdates: true.
super display.
Display deferUpdates: false; forceToScreen: self windowBox.
CacheBits ifTrue: [self cacheBitsAsIs]]
! !
More information about the Squeak-dev
mailing list
|