fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Performance issue on long list and full width images

Open henrytao-me opened this issue 11 years ago • 4 comments

I am experiencing fresco SimpleDraweeView on RecyclerView: long list and full width images. It's quite laggy. I turned on GPU rendering in developer options and it jumped to the top of the screen at some points. I also tried ImageView with simple AsyncTask Image Loader which doesn't have cache, it's pretty fast and smooth.

Here are full testing specs:

  • Nexus 5
  • Enless recyclerView list
  • Full width images (image size is quite small)
  • Flexible list (some items have text only, some other items have images and text)

Do you have any idea on how to fix this issue?

henrytao-me avatar Jul 06 '15 09:07 henrytao-me

I am not sure what might be the cause, but we are investigating it.

plamenko avatar Jul 06 '15 20:07 plamenko

I've got same issue, I think there are 2 reasons to make it lag

  • Big DraweeView (full-width as @henrytao-me said)
  • The visibility of DraweeView is changed when rendering in adapter (GONE to VISIBLE)

mrlongtt avatar Jul 07 '15 10:07 mrlongtt

If you're targeting a version of android before api 14, you can add android:hardwareAccelerated="true" to your application tag in the manifest. I think if you're targeting a version >=14 then it's enabled by default. Something to check at least. My app displays a lot images side by side in a pager and it doesn't lag

AcidicSkittles avatar Jul 16 '15 06:07 AcidicSkittles

Closing as there has been no updates for 2 years, and this seems to mostly concern (by now) obsolete Android versions

erikandre avatar Jul 11 '17 16:07 erikandre