[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: Win32 GTK rendering speed
On 4/15/05, Tomasz Motylewski <T.Motylewski@bfad.de> wrote:
>
> > > Could you quantify this "considerably"?
> > >
> > About 2-3x in my case, but maybe more as I haven't benchmarked it.
> > Sample code attached.
>
> Looks very promising. I was afraid that beginning of next line must overlap
> with the end of previous line, but your code does not check it. Must the lines
> drawn form continuous "zigzag" ?
they only have to form a continuous zigzag for gdk_draw_lines.
http://developer.gimp.org/api/2.0/gdk/gdk-Drawing-Primitives.html#gdk-draw-segments
gdk_draw_segments uses a list of start-end pairs:
typedef struct {
gint x1;
gint y1;
gint x2;
gint y2;
} GdkSegment;
--
- Charles Lepple