d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.89k stars 501 forks source link

Open ImageGlass without loading all list from same directory #786

Open tjjh89017 opened 4 years ago

tjjh89017 commented 4 years ago

In my scenario, I want to use slideshow to display all images from PC, and it will show last seen image and re-start slideshow when shutdown and reboot my PC.

When I enabled "Open last seen image" and folder is so big, it will freeze the program util finishing loading all files into list. When I enabled "Open last seen image", "Find images from child folder" and place images into different folder, it will only put images in child folder into list, but I need all images in list.

Is it possible to use 2 thread or alternative to display image and update list separately? Make sure that it will not freeze the program.

Thanks and appreciate

image

tjjh89017 commented 4 years ago

Update: It will need some time to load, if the directory is too big. This will not be a problem. (not long time)

But if the directory is too big and someone is changing the file in directory, it will freeze the program until all files are loaded. (It will load files and execute Filewatcher concurrently)

I saw ImageGlass use Async to load image list. So performance issue might in Filewatcher. If we insert too many files in one time, it might call too many times and create too many threads

I'm not sure it will be a critical issue or not. If it's not a critical performance issue, please close this issue directly. Thanks a lot

d2phap commented 4 years ago

Thank you @tjjh89017 IG currently does not support this

tjjh89017 commented 4 years ago

If it isn't an important or urgent task Feel free to close this ticket. Thanks