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

Re: [pygame] Dirty Rectangle Processing



On 30 Apr 2006 at 1:27, Kamilche wrote:

> I worked up a small example to illustrate the dirtyrect
> processing method I mentioned earlier.
> If you can make this faster, post your results here!
> Note that all sprites have an alpha channel that must be maintained.
> 
One clue to boost performance is to understance that attribute lookup 
is expensive. For instance, instead of having a loop that iterates 
through sprites and calls their Draw methods, keep a list of bound 
Draw methods and iterate through that.

Lenard Lindstrom
<len-l@xxxxxxxxx>