Live data from Hacker News

Recreating macOS’s Drift Screensaver with Rust and WASM

github.com

1–10 of 47 posts

Re: Recreating macOS’s Drift Screensaver with Rust and WASM

#5
post #4
post #2

Browser demo: https://flux.sandydoo.me/

Hit "C" to bring up the control panel which, btw, is written in Elm!

Ah, the tell-tale signs of re-implementing inputs from scratch! It's not so much "hit C" as "Hit the key with code KeyC"... which means press "j" if you're using Dvorak, and something else if you're using Azerty, Colemak, or some other layout.

Re: Recreating macOS’s Drift Screensaver with Rust and WASM

#6
Are these screensavers designed to be impressive and fun while also requiring minimal processor (battery)?

I always assumed the screensavers that ship with the Mac are carefully designed not to unnecessarily drain the battery, but I realised just now that’s just an assumption.

Re: Recreating macOS’s Drift Screensaver with Rust and WASM

#7
post #3

What's the gist behind how the flow lines are generated? It looks sort of like the vector field for a differential equation, can we plug in our own values?

Can’t speak to the vectors themselves but the colors on macOS are derived from your desktop image

Re: Recreating macOS’s Drift Screensaver with Rust and WASM

#8

Are these screensavers designed to be impressive and fun while also requiring minimal processor (battery)? I always assumed the screensavers that ship with the Mac are carefully designed not to unnecessarily drain the battery, but I realised just now that’s just an assumption.

The older ones are pretty lightweight shaders, and don't seem to tax the machine that much. Drift would heat up my Intel Mac pretty quickly though (~70c, 80c if connected to an external monitor), but presumably only because the iGPU was struggling. I'd be curious to profile the official program and see what's hogging the GPU so much...

Re: Recreating macOS’s Drift Screensaver with Rust and WASM

#9

Are these screensavers designed to be impressive and fun while also requiring minimal processor (battery)? I always assumed the screensavers that ship with the Mac are carefully designed not to unnecessarily drain the battery, but I realised just now that’s just an assumption.

On a tangent and not really related, but I noticed the port of the ATV screensaver Aerial for Windows would tax my PC somewhat and cause the fans to spin up :-)

I think it did on the Mac too - but don’t quote me…

Post reply on HN