what is way to implement lazy loading in existing code of thumbnail image previwer ?
-
i am loading at a time 30 GB of images on my thumbnail previewer so that my application become hang.
so i think that if we load image as like mobile gallery. i can improve performance of image thumbnail previewer.
But i don't know how to load thumbnail on scrolling slowly as it scroll ?
-
Don't try to load all these thumbnails.
-
Hi,
Do you already have the thumbnails generated ?
-
Check the Fetch More Example.
-
i have 128 kb of ram and i have 30 gb images in sd card .
Is this can create problem while load multiple images on ui ?
if yes then how to deal with this problem ?
-
@Qt-embedded-developer said in what is way to implement lazy loading in existing code of thumbnail image previwer ?:
i have 128 kb of ram and i have 30 gb images in sd card .
128kb ? I hope you are meaning Mb.
In that case you should implement a "moving window" where you only load a fixed number of images at a time matching the number of visible items plus some more to allow for a reasonable transition.
-
My 128kb question is serious, what exact amount of memory do you have ?
In any case, you'll have to implement a custom view to minimize the amount of data loaded and used.
-
@SGaist
sorry i found that i have total 1002 Mb ram, used ram 287 Mb , free ram which is increasing continuously while loading continuous image is 485 Mb , buffer/cache 228 Mb , availbale ram is 694 Mb .the actual problem is i used thread which is using 100 % CPU core when loading image Continuously in loop
-
Don't try to load all these thumbnails.