RE: Canvas limitations (was Re: Coding question, canvas)
- From: "Richard Hult" <rhult hem2 passagen se>
- To: "Havoc Pennington" <hp Mcs Net>
- Cc: <gnome-list gnome org>
- Subject: RE: Canvas limitations (was Re: Coding question, canvas)
- Date: Tue, 9 Feb 1999 09:56:26 +0100
Thanks for all the answers! Time for some more questions ;)
> The other limit is that it takes a noticeable amount of time to create
> the GtkObjects if you create, say, hundreds of them (vs. 50 or so which
> will be plenty fast). Of course this number varies radically depending on
> your CPU and exactly which items you're using.
So a "grid" (dots that objects snap to) would be a candidate for an own
canvas item? I tried putting lots of rectangles on my canvas and it's not
exactly slow but it takes a bit of memory.
Something that comes to mind is that it's a kind of weird object. It covers
the whole canvas but there is a lot of space really, just some dots here and
there. Will this cause lots of redraw requests, when objects move over the
grid, even over the space between the dots? This seems a bit inefficient.
I'm not completely clear about exactly what's involved in making a canvas
item, so these questions may be a bit irrelevant ;)
Is there a commented example of this somewhere in the sources? Is a
copy-and-paste-operation from the already defined canvasitems the way to go?
] [Thread Prev