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

Re: gEDA-user: PCB slowdown?



--- DJ Delorie <dj@xxxxxxxxxxx> wrote:

> Lesstif has a "thindraw polygons" option that does
> basically that.
> Unfortunately, the clipper makes it useless because
> it doesn't know
> about the flag, so you see hundreds of polygon slice
> outlines.  I need
> to move all the thindraw stuff to one place to get
> that functionality
> back.

Line 2046 in draw.c attempts to check for the thindraw
flag but it seems you've moved the thin drawing into
the hid (but only for lesstif). The GTK gui correctly
handles thin draw of the polygons, which make the
panning and zooming much faster for the sbc board.

If you make line 2046 understand either the thin-draw
or polygon thin draw for the lesstif gui, it will
correctly draw the outline and and holes without
dicing. Be sure not to break the GTK version in the
process.

The slowdown comes from the dicing operation used to
render the polyogn. I suppose the dicing results
should be cached for fast re-use since it can take
some time when there are a lot of holes. It's slightly
ugly because only that portion that is visible is
actually diced - this is necessary for proper
rendering at all zoom levels. In practice it means
that whenever a polygon is clipped it should probably
also be diced and stored so that rendering only clips
the pre-diced poly against the viewport.



 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user