marijnkampf / Random-Photo-Screensaver

Source of Random Photo Screensaver
http://www.abscreensavers.com/random-photo-screensaver/open-source
Other
44 stars 14 forks source link

Loading metadata int database takes long and consumes lot of CPU #138

Open BorisKostrhun opened 2 years ago

BorisKostrhun commented 2 years ago

I run the screensaver on a folder with 120k+ pictures/videos where 99,9% no changes in file structure happen. After every start the screensaver rebuilds the list of files + the metadata database which loads the disk + CPU - what affects the performance of background tasks (e.g. backup of the picture library).

Is it possible to implement one of following:

  1. configure how often the database is being rebuild (e.g. once a week/month)?
  2. limit the CPU usage to e.g. 2% of CPU capacity / disk troughput
  3. stop using the metadata database completely
  4. limit the time when screensaver updates the database (e.g. 01:00 till 04:00)
  5. something else?

BTW: Big thumb up for yor screensaver - I like it!