On 1 December 2011 10:46, Pete Houston <[email protected]> wrote:
> I'm currently trying to customize Google Android Launcher; however, on
> home screen, when I try to fling left-right to move between screens,
> it doesn't seem to be smooth.
>
> I'm wondering how to calculate the frame per seconds when I fling
> screen left-right?
> Is there any idea on how to improve Google Android Launcher
> performance?
>
> I'm working on 2.3.3 Gingerbread.
>
> Really appreciate your support!


Pete,

How do you paint the wallpaper?

You could write your custom extension of Drawable class and in its
draw() method, you could capture the drawing events, thereby
increasing the frame count. Then all you have to do is to have timer
task that is called every second, to calculate FPS and reset the frame
counter.

Your performance will depend on how much actual painting happens on
the screen. If the transition is very quick (say shift of 480pixels in
0.5 seconds), you could optimise it by not painting everything.

Have a look at performance optimisations in ListView, which does quite
lot of tricks to speed-up scrolling.


Daniel











>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to