[AC-5281] Listview Laggy if load high resolution image
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-10-28T19:46:02.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Appcelerator Dashboard, Appcelerator Modules |
Labels | n/a |
Reporter | ardy wongso |
Assignee | Shak Hossain |
Created | 2017-10-16T07:25:37.000+0000 |
Updated | 2017-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.
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
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.
Hello, Please send a full reproducible app. We will test the behavior. Thanks.
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.