You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for the report. This does seem pretty reasonable, but that loop is also responsible for processing cached scrobbles.
Maybe I can work out something smarter, although I believe that the gain of using mpd's idle is rather limited (unless your MPD does not run on the same host as mpdas). Nevertheless it is something that could be improved.
See http://git.musicpd.org/cgit/master/mpc.git/tree/src/idle.c for a small example of how to wait for a change to happen.
Probably not much effort, as far as I can tell, you'd only need to replace line 146 in main.cpp (
usleep(500000);
) with code handeling idle.When the "player" event happens, update.
Since that'd mean mpdas gets changes instantly, it'd update a little bit faster and do less work while waiting.
The text was updated successfully, but these errors were encountered: