Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5281] Listview Laggy if load high resolution image

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2017-10-28T19:46:02.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAppcelerator Dashboard, Appcelerator Modules
Labelsn/a
Reporterardy wongso
AssigneeShak Hossain
Created2017-10-16T07:25:37.000+0000
Updated2017-10-28T19:46:02.000+0000

Description

Here is the step to duplicate 1. create listview with dummy data 2. each item add 1 imageview with load remote image 3. remote image is a large image, for example 5000x5000 with size 1mb 4. listview is hardly scrolled (laggy) Try above case, change the remote image url to broken link (for example "http://brokenlink.com/image.png") then try to scroll the item, it very laggy. I'm not sure it affecting what kind of TI SDK version, but for sure in 5.5.1/6.1.2 GA it was working fine.

Comments

  1. Mostafizur Rahman 2017-10-26

    Hello [~dyan02], Thanks for sharing with us. Can you please try to use a smaller size image on list view? Using high resolution image on list view will consume more memory which is expected behavior. It is imperative that you don't load lots of images into memory at once or you'll exhaust your app's memory. For details click [here](http://docs.appcelerator.com/platform/latest/#!/guide/Image_Best_Practices-section-src-30082525_ImageBestPractices-Loadingandunloadingimagestomanagememoryuse). Thanks
  2. ardy wongso 2017-10-26

    Well it was working fine in 6.1.2 although it's a huge image resolution. But it's not the only problem, try to load a listview in 6.2.2, set defaultImage to imageview, and set broken url image to imageview.image parameter, the listing will be laggy to scroll.
  3. Sharif AbuDarda 2017-10-26

    Hello, Please send a full reproducible app. We will test the behavior. Thanks.
  4. ardy wongso 2017-10-27

    Hi there, sorry, it seems by today I can't duplicate the issue in my code/studio, I'm not sure why, it was happen previously during i report this bug. Please close this bug, and i'm sorry for causing inconvenience. if I encounter this issue and i found the exact trig point, i will let you guys know.

JSON Source