[maemo-developers] Screenshot as loading screen on Maemo 5

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Fri Oct 23 09:08:58 EEST 2009
On Thu, 2009-10-22 at 17:38 +0200, ext Aniello Del Sorbo wrote:
> 2009/10/22 Andrew Flegg <andrew at bleb.org>:
> > On Thu, Oct 22, 2009 at 16:06, Aniello Del Sorbo <anidel at gmail.com> wrote:
> >>
> > [snip]
> >> Thus I thought I'll take the screenshot at the expose event and only
> >> take it if the file is not there already.
> >
> > I *think* you need to do it at every expose event. What if the user
> > changes theme and the font colours change (for example)?
> >
> > Cheers,
> >
> > Andrew
> >
> > --
> > Andrew Flegg -- mailto:andrew at bleb.org  |  http://www.bleb.org/
> >
> True.
> But taking a snapshot slows down the startup... it should be then done
> in a small thread?

Please, no threads, no!  The screenshot is only taken if it does not
exist, otherwise the existing screenshot is used.  So, the performance
penalty is not there every time, only when the old screenshot does not

The idea of the screenshot is to fool the user to think that the
application starts really quickly and shows an empty window and then
appears to complete its window drawing (when the real window is shown
and drawn).  So, the screenshot should look like the application window
before the content is drawn into it to keep this illusion.


More information about the maemo-developers mailing list