[squeak-dev] How can I count redraws of SystemWindows?

Matthias Berth matthias.berth at googlemail.com
Fri May 2 13:00:59 UTC 2008


On Fri, May 2, 2008 at 1:36 PM, Adrian Lienhard <adi at netstyle.ch> wrote:
>  Most likely you get into an endless loop because your logging behavior
> triggers another redraw.

I was thinking that, too - but even when I do something simple like
self title it locks up.

>  What you can try is to add an instance variable (or global) and use it as a
> counter, or you could log to a file.

Yes, that would be an option. I'll try that next time. For now I'm
happy with turning off rounded corners to make browsers faster.

Cheers

Matthias

>
>
>  On May 2, 2008, at 12:03 , Matthias Berth wrote:
>
>
> > Hello,
> >
> >
> > I am trying to find out why browsers get slower when you open more of
> > them in Squeak 3.9 (see previous emails). One theory is that hidden
> > browsers are redrawn. I'd like to test that by making a note on the
> > Transcript every time a browser window gets redrawn. I have tried to
> > override SystemWindow>>fullRedrawOn: aCanvas. Unfortunately, the image
> > locks up when I try to accept a non-trivial variation. I have tried
> > e.g.
> >
> > fullDrawOn: aCanvas
> > super fullDrawOn: aCanvas
> > self title. "Hangs."
> >
> > Sometimes I am able to accept more complicated variants of this, but
> > invariably I ended up with a hanging mage. I have tried to write to
> > transcript only if I am inside certain type of window, in order to
> > avoid redrawing loops for the transcript window. That failed because I
> > ws not able to accept these variants of fullDrawOn:.
> >
> > Anything else I can try to count redraws?
> >
> > Cheers
> >
> > Matthias
> >
> >
>
>
>



More information about the Squeak-dev mailing list