Page 1 of 1

Lazy loading

Posted: Thu Nov 01, 2012 6:59 pm
by soulky
It would be nice to have a lazy loading feature for thumbnails. This would close the gap between loading thumbnails for entire folder and loading thumbnails only for the visible area.
The idea would be to resume thumbnail loading when the computer is near or in idle mode. This way thumbnails could get accessed much quicker.

Re: Lazy loading

Posted: Fri Nov 02, 2012 3:45 am
by XnTriq
Speed improvement: Lazy loading has already been implemented.

Re: Lazy loading

Posted: Thu Nov 08, 2012 1:25 pm
by soulky
My idea would be to make xnviewmp preload thumbnails even in lazy loading mode. When scrolling folders in thumbnail view it easily shows that it takes some time for xnviewmp to load/create the thumbnails for displaying them while thumbnails that are already in memory get displayed very quickly. So my suggestion would not to stop loading of thumbnails but optionally resume background thumbnail loading at a very slow rate when the cpu is (almost) idle.
The use case would be a case when skipping through a lot of files in a folder. If you open one of them and look at it for example a video, then xnviewmp would still load thumbnails in the background. So when you quit the video and resume skipping through the files, you have the nex thumbnails already loaded and can scroll more quickly.

Re: Lazy loading

Posted: Thu Nov 08, 2012 7:37 pm
by Rebellious
Probably depends on your CPU. On my machines thumbnails load so fast that caching may be unnecessary.

Re: Lazy loading

Posted: Fri Nov 09, 2012 6:19 am
by soulky
Rebellious wrote:Probably depends on your CPU. On my machines thumbnails load so fast that caching may be unnecessary.
Actually it varies a lot. Somtimes it is quick to load, sometimes it is slow. But it is not only about loading but alos about creating the thumbnails which is much always much slower than simpliy loading the thumnails from the database.