[plt-scheme] GUI redraw speed/show and scrolling
At Fri, 26 Aug 2005 14:57:32 -0500, Corey Sweeney wrote:
> On 8/26/05, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> > At Fri, 26 Aug 2005 13:07:08 -0500, Corey Sweeney wrote:
> > > Hi, I've set up a GUI with lots of buttons and nested panels. When it
> > > draws a new window, it can take up to 15 seconds. However, doing the
> > > same thing under gtk, takes under 1.
> > >
> > > I was thinking the problem might be that I was allowing the gui to
> > > display while it was adding all the panels (you can see it "building
> > > up" the window piece by piece), so I tried
> > >
> > > (send main-panel show #f)
> > > {add sub-panels and buttons}
> > > (send main-panel show #t)
> > >
> > > but this didn't seem to help. Is there anything I can do to speed it up?
> >
> > Even when a window is hidden (but not deleted), it contributes to its
> > parent's geometry.
> >
> > Does
> >
> > (send main-panel begin-container-sequence)
> > {add sub-panels and buttons}
> > (send main-panel end-container-sequence)
> >
> > help?
>
> Yes! I'm down from 15 seconds to 4 seconds. While 4 seconds is
> still a ways from perfect, it's much more usable now. Thanks
You might also try to drop some "l"s (ie, change panels to panes).
Panes are more restrictive than panels, but also more efficient.
Robby