[squeak-dev] Re: Double-buffering using Display and BitBlt
Michael van der Gulik
mikevdg at gmail.com
Tue Mar 17 20:51:25 UTC 2009
On Tue, Mar 17, 2009 at 9:00 PM, Andreas Raab <andreas.raab at gmx.de> wrote:
> Michael van der Gulik wrote:
>
>> Is there a trick related to deferUpdates:? Or is it not really supported
>> or supported using some other plug-in?
>>
>
> Yes, there is a trick. Compare these two:
>
> 1 to: 1000 do:[:i|
> Display getCanvas line: i at 0 to: i at 500 width: 1 color: Color black.
> ].
>
> vs. (after doing a restore display):
>
> Display deferUpdates: true.
> 1 to: 1000 do:[:i|
> Display getCanvas line: i at 0 to: i at 500 width: 1 color: Color black.
> ].
> Display forceToScreen: Display boundingBox. "way too much but hey..."
>
Thanks, Andreas. I'm not sure if it's double-buffering, but it achieves the
same goal.
In other news, my image causes the VM to do a segmentation fault on startup.
I'll work out if that's from stupidity or a legitimate bug tonight.
Gulik.
--
http://gulik.pbwiki.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090318/d69ca6ef/attachment.htm
More information about the Squeak-dev
mailing list
|