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

Re: [pygame] line boundingbox



On Tue, May 29, 2001 at 01:14:46PM -0700, Pete Shinners wrote:
> > Also, it would be nice if Rect operations (such as union)
> > were in-place (destructive) operations rather than creating
> > new objs -- it's easy enough to copy them, but in this case
> > (keeping a running Union) it would be more efficient.
 
> the Rect is a very handy utility class, and i'm not opposed
> to making it a bit more flexible. i don't think these additional
> functions would make it too "overwhelming" either?
> any opinions out there?

Just to chant the usual games programming mantra at this point:

Does this optimisation actually make a difference?  Has someone
got a game where in place recting speeds it up substantially (say
at least 1%)?

Perhaps the actual sprite blitting dwarfs creating a new object on an 
efficient heap.

Francis

-- 
Home: francis@flourish.org  Web: www.flourish.org
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org