Ok, the numbers from a Galaxy Nexus with 4.0.2:

hw accel off: animated frames take 7-10-13 ms.
hw accel on: animated frames take 2-3-4 ms.

The widget / app selector on my Galaxy Nexus does stutter somewhat,
but if I scroll it all the way and then back again, it then animates
much smoother.

Based on this, I'd think it's the app / widget icon cache population,
not the drawing.

-- Kostya

16 января 2012 г. 22:53 пользователь Kostya Vasilyev
<[email protected]> написал:
> FWIW:
>
> One of my apps, WiFi Manager has a very simple graphical network view:
>
> https://lh4.ggpht.com/RAtqQLlAi6N-oiLg_B6HIKL3ltk0Flb7y52-GRIHz4F7s5Ob4lg8gRpCQ2z1fbSLmQ
>
> ( it's taken on a 2.* phone, but you get the idea ).
>
> I just added some profiling code and tried it on a Sony Tablet S, 10",
> 1280*800, running 3.2.1, with android:hardwareAccelerated="false" and
> ="true".
>
> While animating, each frame takes 0-1-2 ms with acceleration on, and
> 7-10-13 ms with acceleration off.
>
> The view is drawn in a very straightforward way, just some lines and
> ellipses text, using Canvas.
>
> I can post numbers for a Galaxy Nexus later if you're curious.
>
> -- Kostya
>
> 16 января 2012 г. 22:41 пользователь sblantipodi
> <[email protected]> написал:
>> Just to add some more data.
>> This simple app can render its UI at 60FPS on Galaxy Nexus running
>> stock 4.0.2 with HW ACC is OFF.
>> https://market.android.com/details?id=MortgageCalculatorPRO.DPsoftware.org&feature=search_result#?t=W251bGwsMSwyLDEsIk1vcnRnYWdlQ2FsY3VsYXRvclBSTy5EUHNvZnR3YXJlLm9yZyJd
>>
>> Simply enable hardware acceleration and the framerate drops from 10FPS
>> to 30FPS.
>> As I repeat all the UI is drawn using drawLine() drawRect()
>> drawRoundRect() and StaticLayout to draw a correctly wrapped text.
>> Simple apps using simple UI runs slow on a 1.2GHz CPU with 1GB of RAM.
>>
>> Is there any reason to justify this aside from the fact that it must
>> be some problem in the hw acceleration implementation?
>>
>> --
>> 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

-- 
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