Repository navigation
v0.2.1
Pre-release
Pre-release
What's new: lower latency
A new track now shows up much sooner after Last.fm sees it.
Faster polling
- Last.fm is checked every 2 s instead of every 6 s (
POLL_SECS, 1–60). - Around the expected end of a track it checks every second, using the track length from Last.fm.
3–4× faster screen building (emulated Pi 2, 4 cores, 800×480):
| Look | Before | Now |
|---|---|---|
| vinyl | 926 ms | 196 ms |
| your pressing | 1358 ms | 301 ms |
| poster | 622 ms | 403 ms |
| ambient | 1688 ms | 466 ms |
The work is spread over all but one core, so the record keeps spinning at 60 fps while the next screen is built. The looks are unchanged, except a slightly smoother glow and shadow in ambient.
Overall, the display's own part of the delay drops from up to ~8 s to roughly 1–2.5 s. Tidal's delay in reporting to Last.fm comes on top of that.
NP_PROFILE=1 logs the time each drawing stage takes.
Downloads
| File | For |
|---|---|
now-playing-v0.2.1.tar.gz |
Everything needed to install: both binaries + pi/install.sh |
now-playing-pi2 |
Raspberry Pi 2, Raspberry Pi OS Lite 32-bit |
now-playing-pi3 |
Raspberry Pi 3, Raspberry Pi OS Lite 64-bit |
Install or update as before: bash now-playing/pi/install.sh <lastfm-user> <api-key>.
Status
Tested on macOS and under emulated ARMv7. Not yet tested on real Pi hardware, so it stays a pre-release.