Re: gnomecanvas question
- From: Paul Davis <paul linuxaudiosystems com>
- To: Joe Van Dyk <joevandyk gmail com>
- Cc: gtk-list gnome org
- Subject: Re: gnomecanvas question
- Date: Mon, 14 Mar 2005 18:48:45 -0500
>> is this an AA canvas? how are you drawing the grid?
>
>
>Yes, AA canvas.
>
>I have a variable that controls how wide (in pixels) each grid square
>should be. I start at the world's mininum x and increment to the
>world's maximum x, drawing a line from the world's mininum y to the
>maximum y (for vertical lines). And repeat for horizontal lines.
i can't give you very specific advice, but i do know that in my use of
the canvas (i still use the back-ported GtkCanvas) i ended up writing
a canvas_simpleline item which renders only horizontal and vertical
lines, rather than the multipoint/antialiased lines that libart_gpl is
capable of. it helped speed up related issues. i don't know if it
would help you. the source is in CVS at
http://ardour.org/download.html (see the viewcvs link; in
ardour/gtk_ardour/canvas-simpleline.c)
i did the same for canvas-simplerect, which is very much faster than
the rect item that comes with the canvas.
my canvas is UINT32_MAX x UINT32_MAX although it is rarely filled much.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]