[Sugar-devel] [Dextrose] [PATCH v5 sugar] Pulsing icon delayed by 5 seconds or so SL#2080

Gonzalo Odiard gonzalo at laptop.org
Wed Dec 1 23:52:38 EST 2010


On Sun, Oct 31, 2010 at 3:44 AM, Martin Dengler <martin at martindengler.com>wrote:

> On Sat, Oct 30, 2010 at 12:09:53AM +0530, Anurag Chowdhury wrote:
> > Uptill now what we have gathered from this issue is:
> >
> > 1) We can improve this issue by using a cache system or cairo operation:
> >
> >   >    " I think the problem is the code is rendering the svg icon every
> time
> >   >      the color is changed.
> >   >      There are not cache or cairo operation used to avoid this.
> >   >
> >   >      Gonzalo"
> >
> >  -- I think that we all seem to agree upon this point that using a
> > cache to store the once rendered frames and then reuse them later
> >    in the animation to improve the performance of the system.
>
> This is already done.
>
>
The cache is not used if the colors change, right?

I have implemented a pulsing icon using alpha.
Is a poof of concept patch (does not remove the unused properties), but now
does not render the icon every time.
I profiled with cProfile using the Martin instructions, and I think the
graphic show a improvement,
but I didn't see a big reduction in the startup time in the activities. (I
didn't tested it in XO 1.0)

Patches and profile graphics can be downloaded from
http://dev.laptop.org/~gonzalo/alpha-pulsingicon/

Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101202/2a2eea28/attachment.html>


More information about the Sugar-devel mailing list