[sugar] [PATCH] screenshots hurt

Tomeu Vizoso tomeu
Thu Sep 4 04:42:32 EDT 2008


On Thu, Sep 4, 2008 at 7:29 AM, Erik Garrison <erik at laptop.org> wrote:
> Sugar Developers,
>
> In the field and amongst our own developers there have been numerous
> complaints about the performance of Sugar.  One simple thing we can do
> to improve user experience is to stop taking screenshots on every
> tabbing event, every activity focus change event, and every frame
> appearance event.
>
> The attached patch to Sugar (most recent git head, 48dd24c6e) does
> simply that.  Andr?s Ambrois and I have tested the changes in question
> on a machine running 656 and on a machine running 2263 (the most recent
> joyride I have available-- code in question is identical to the current
> sugar git head).  We noted a considerable improvement in the speed and
> consistency of activity switching performance.
>
> These qualitative results are consistent with prior user interface
> profiling tests by Riccardo Lucchese, which have established that
> screenshot functionality occupies just shy of 50% of CPU time during
> activity switching [1].
>
> Please apply the patch and test on a *REAL* machine.  Please comment on
> the effects.  Note that on recent joyride builds the appearance of the
> frame on every tabbing event makes it more difficult to notice the
> performance change.

The patch looks good in that it does what intends and doesn't seem to
have any unintended effect. About the convenience of totally
deactivating screenshots in the next release, I think it's a decision
that needs to be taken on non-technical grounds. Are we going to
better serve our users' interests by doing so? Is the improvement of
perceived performance worth the lost functionality? Greg, can you help
on this?

Note that I understand this as a temporary measure, for the next
release I think we should properly address this issue. I have just
added two tickets on this regard:

https://dev.laptop.org/ticket/8303
https://dev.laptop.org/ticket/8304

Thanks a lot for looking into this,

Tomeu



More information about the Sugar-devel mailing list