Re: tutorial on gnome canvas?

On Thu, 6 Apr 2000, J.W. Bizzaro wrote:

> >         *Is it more efficient to stick all of the widgets on to a very large
> > canvas and let the canvas draw what is appropriate or to remove them.
> As opposed to...multiple canvases?

Basically you should group items, so there are never more than (?)
sibling in any group. Then you can safely keeps items untouched.

I.e. if you have 100000 canvas items attached to root, most
methods will take considerable time (traversing full children list
every time)
If you have 3 levels of groups (with 10, 100 and 100 children) it should
be very fast (if children do not ovelap much) due to eliminating of
non-affected groups.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]