notandy / ympd

Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS
http://www.ympd.org
GNU General Public License v2.0
523 stars 144 forks source link

No idle support #127

Open lnicola opened 8 years ago

lnicola commented 8 years ago

I'm using ympd with mopidy, which is quite slower than mpd. It looks like ympd polls the server once every 200 ms, which makes mopidy use quite a bit of CPU on my machine.

Perhaps using the idle command would improve both the efficiency and reduce the latency for UI updates?

EDIT ah, I guess this is done to synchronize the mongoose and mpd event loops.

SuperBFG7 commented 8 years ago

On a related note: the UI in the browser is updated everytime as well, even if there were no changes. I found this to have a big impact on battery life on mobile devices.