On Sun, Oct 31, 2010 at 3:44 AM, Martin Dengler <mar...@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
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel