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

Re: [pygame] Dirty Rect Animation




I'm fairly certain that update does NOT merge incoming rects or do any other optomization  on input.  It iterates through all of the rects in the list and updates that portion of the screen.  So you can optimize it  considerably by merging rects where it makes sense, rather than sending a rect for each of your 1000 sprites you want to draw :)

You could also check out DR0ID's optimized drawing routine and see what he does.  If I recall, it handles dirty rects.