From: Jae-Joon L. <lee...@gm...> - 2009-08-18 21:42:31
|
On Tue, Aug 18, 2009 at 1:53 PM, Alan G Isaac<ala...@gm...> wrote: > 2. This is pretty fast. Would there be additional > speed gains to blitting, and if so, how would it > be done? (I'm just asking for clues, not a complete > example.) Blitting will improve the performance when significant portion of your plot is (semi-)stationary. And I guess your example, as it is, may not benefit from blitting. A. init 1. draw stationary artists (animated=False) on the canvas 2. save the area of canvas as a pixmap array. B. looping for animation 1. restore the stationary artists by blitting the saved pixmap array 2. draw animated artists. 3. optionally update the saved pixmap. And your speed gain comes from B.1 Regards, -JJ |