norns-study-group / pirate-radio

norns pirate radio: explore, listen, share, contribute.
https://coffer.norns.online
GNU General Public License v3.0
33 stars 22 forks source link

Dropping samples/clicks, CPU use 71+% #80

Open Gahlord opened 5 months ago

Gahlord commented 5 months ago

Not sure if this project is still updated but I was setting up a fresh norns today and it was dropping samples/clicking a fair bit. I checked CPU and it was holding steady at 70% to 72% cpu. Not entirely sure what hardware is in my norns; it's factory silver with disk avail about 25100M, Firstlight run 12% of CPU.

I don't know enough about norns scripting to offer direct aid in improving. But figured I'd file this report anyway.

schollz commented 5 months ago

can you try replacing lib/radio_stations.json with this reduced one:

[
{
    "band": 90.3,
    "bandwidth": 0.3,
    "name": "weather",
    "description": "24/7 weather",
    "allow_uploads": false,
    "image": "/home/we/dust/code/pirate-radio/art/90.3.png"
},
{
    "band": 91.7,
    "bandwidth": 0.3,
    "name": "coffee time",
    "description": "breathe the fumes",
    "image": "/home/we/dust/code/pirate-radio/art/coffee/",
    "animation_fps": 7
},
{
    "band": 92.5,
    "bandwidth": 0.3,
    "name": "yoyo",
    "description": "spins",
    "image": "/home/we/dust/code/pirate-radio/art/yoyo/",
    "animation_fps": 7,
    "x_offset": 3,
    "y_offset": -3
},
{
    "band": 93.0,
    "bandwidth": 0.3,
    "name": "toriigate",
    "description": "solar punk",
    "image": "/home/we/dust/code/pirate-radio/art/toriigate/",
    "animation_fps": 7
},
{
    "band": 93.5,
    "bandwidth": 0.3,
    "name": "clacky",
    "description": "brain dance",
    "image": "/home/we/dust/code/pirate-radio/art/clacky/",
    "animation_fps": 7
},
{
    "band": 97.8,
    "bandwidth": 0.3,
    "name": "lo-bit",
    "description": "chiptune & trackers",
    "image": "/home/we/dust/code/pirate-radio/art/chip/",
    "animation": "ping-pong",
    "animation_fps": 7,
    "y_offset": -5
},
{
    "band": 99.9,
    "bandwidth": 0.3,
    "name": "toast",
    "description": "bouncy",
    "image": "/home/we/dust/code/pirate-radio/art/toaster/",
    "animation": "ping-pong",
    "animation_fps": 7,
    "x_offset": 5
},
{
    "band": 102.8,
    "bandwidth": 0.3,
    "name": "WFSD - the fireside",
    "description": "warm youself",
    "image": "/home/we/dust/code/pirate-radio/art/bonfire/",
    "animation": "ping-pong",
    "animation_fps": 7
}]
Gahlord commented 5 months ago

That helps a bunch. Brings CPU down to 50%-60%, the !!! unlights some, and there are also fewer pops.

schollz commented 5 months ago

good to know, thanks for the update