-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: About the new Media Library plugin #3093
Comments
Hello, thanks for the feedback. Could you please share more details about performance issues that you encountered? |
After adding all my music folders, scrolling the list and expanding/collapsing directories seemed to be slow, much slower than the filebrowser plugin I had been using previously. However today seems to work just fine and can't appreciate any slowdowns while navigating the plugin. Maybe it was just because it was the time loading all cover arts? Apart from this I think the stability seems to be pretty solid |
It could be because of that, yeah.. Or because the library was still scanning in background. |
From my experience I think I can say that coverart loading in medialib is somewhat slow for me. I don't know what speed is to be expected though, and my setup has music stored on network drive (which I guess can cause bigger latency). When reloading deadbeef and jumping down it takes 1 second for the covers to start showing up. Sometimes scrolling the list cover loadning process can even take 5+ seconds but I couldn't reproduce it reliably. I have no proof but this reminded me of pretty similar bug when porting cover art to windows: There was a race condition that discarded the just loaded cover and tried to load it again in a loop until the conditions/timing was right. Also I have a feature request: When deadbeef launches on system startup the drive sometimes isn't attached yet which causes the media library to be wiped out. It would be nice to have a feature that will prevent that. Solutions that come to my mind is rescanning the unavailable folder after some time (5-10 seconds maybe?) and/or a popup for user action (rescan, delete from media library, maybe keep cached library as is?). EDIT: the race condition fix was for gtkui covermanager in this commit: 53c4691 |
I haven't encountered any slowness in medialib viewer when expanding / collapsing, and there's no lazy scanning -- so if the folder is visible, all data is immediately available, and there's no IO to do that. However, perceived slowness can be experienced from seeing the cover images lazy loaded. It's not a performance problem since it works by design, and it takes time to load the image files. |
Just to be clear, me neither. |
When inspecting how covermanager is called I found many repeating calls to
After many repetitions it finally stops. |
Good findings. I'll try adding some throttling there, if it's possible. |
I may be remembering wrong, but I believe that it returns NULL if the image has not been cached yet, and completion block will be called. If it returns non-null it means that the image is immediately available and completion block will not be called. |
Also if I understand correctly, there is no scaled cover caching, right? |
Not sure, can't remember at this time. |
I also think this is how it is supposed to work yet in the loop example I have given, a repetitive call to |
Just a suggestion:
I recently switched to the nightly build and realized there is a new media library plugin (which is awesome to have btw).
Since it has no config options I assume is into early stages of development but I'd like to make a couple of suggestions:
Thanks.
The text was updated successfully, but these errors were encountered: