<div dir="ltr">Yes, in the commits of the <span style="color:rgb(115,115,115);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:12px;font-weight:bold;line-height:18px;background-color:rgb(228,228,228)">Tuesday October 01 2013.</span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/2 James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I see nothing new, did you push?<br>
<br>
On Tue, Oct 01, 2013 at 01:20:57PM +0200, laurent bernabe wrote:<br>
> Thanks for these patch : I've applied all and commited them.<br>
><br>
> I must admit I am yet far from good practises.<br>
><br>
><br>
> 2013/10/1 James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>><br>
><br>
> On Tue, Oct 01, 2013 at 10:34:54AM +0200, laurent bernabe wrote:<br>
> > But I don't think I can avoid repainting all screen at each frame,<br>
> > as the balls move, so according to me, the performance gained this<br>
> > way, in the case of my application, won't be that high. Maybe, I am<br>
> > wrong.<br>
><br>
> Yes, you're wrong. ;-)<br>
><br>
> The performance gain is of the order of six times. Using top in 20<br>
> second sample period, the CPU usage dropped from 30% to 5%, just for<br>
> the game process. There was a similar drop for the X process, which<br>
> is the display handler.<br>
><br>
> Please find attached five patches, which you can apply in order.<br>
><br>
> The patches change the drawing functions to return sequences<br>
> containing rectangles, which are then used by Pygame to update only<br>
> the parts of the screen that need to be repainted.<br>
><br>
> If the patches do not apply (git am), then perhaps you have made other<br>
> changes, and I can rebase them. Push your changes and let me know.<br>
><br>
> These changes will make the activity less energy intensive.<br>
><br>
> --<br>
> James Cameron<br>
> <a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</font></span></blockquote></div><br></div>