[squeak-dev] The Trunk: Morphic-mt.1954.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Mar 30 12:07:50 UTC 2022

Marcel Taeumel uploaded a new version of Morphic to project The Trunk:

==================== Summary ====================

Name: Morphic-mt.1954
Author: mt
Time: 30 March 2022, 2:07:43.932263 pm
UUID: bfd62696-7e09-d94a-b437-1ec22c999508
Ancestors: Morphic-mt.1953

Makes the preference #disableDeferredUpdates: functional by clearing the world's current canvas. See #assuredCanvas.

=============== Diff against Morphic-mt.1953 ===============

Item was changed:
  ----- Method: WorldState class>>disableDeferredUpdates: (in category 'accessing') -----
  disableDeferredUpdates: aBoolean
  	"If the argument is true, disable deferred screen updating."
  	"Details: When deferred updating is used, Morphic performs double-buffered screen updates by telling the VM to de-couple the Display from the hardware display buffer, drawing directly into the Display, and then forcing the changed regions of the Display to be copied to the screen. This saves both time (an extra BitBlt is avoided) and space (an extra display buffer is avoided). However, on platforms on which the Display points directly to the hardware screen buffer, deferred updating can't be used (you'd see ugly flashing as the layers of the drawing were assembled). In this case, the drawing is composited into an offscreen FormCanvas  and then copied to the hardware display buffer."
  	DisableDeferredUpdates := aBoolean.
+ 	Project current isMorphic ifTrue: [Project currentWorld canvas: nil].!
- !

More information about the Squeak-dev mailing list