Wednesday, November 21, 2012

Re: [android-developers] Disabling DisplayList creation by Views

Hi, thanks for the quick response!

You are right, of course. The DisplayList was simply holding references to some Bitmaps that were also referred by my custom View elsewhere.

The Eclipse Memory Analyzer Tool is a bit more difficult to use with Bitmaps, after DisplayLists were added. When checking the Retained Heap size of a View, the value supplied will typically be too low, because DisplayLists have grabbed some of the Bitmap references. The DisplayList is then considered by MAT to be the main holder of those Bitmap references, because it's closer to the GC root.

Thanks

On Tuesday, November 20, 2012 4:44:45 PM UTC+1, Romain Guy (Google) wrote:

No you cannot disable DisplayLists. They are required by the UI toolkit.
2MB if display lists seems excessive. Apps like Launcher use in the order
of 15 kB.

On Nov 20, 2012 7:22 AM, "hanni" <han...@gmail.com> wrote:
I've created a bunch of custom views that draw themselves really fast, especially with HW acceleration enabled.

I have several of these views in my application, spread out over many panes. I'm trying to keep as much as possible in memory to avoid reloading data when swiping between panes.

My problem is that Android keeps creating a DisplayLists for each of my views, even though the do not really need it. They don't have any children and draw directly to their canvas, so DisplayLists should have little or no effect on performance. But they sure do take up a lot of memory. Sometimes 2 MB per view, which adds up to a lot.

Is there any way to disable DisplayList creation without disabling HW acceleration?

Thanks,
Daniel

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate