> So does Mac already technically have a native way to play a video as your background, it just does not give the option?
Not really. It may have changed in Sequoia, but afaik in Sonoma this is how it worked :
- ScreenSaver plays the video
- You press a key/unlock your mac
- ScreenSaver does a XPC to the new Wallpaper system with the exact timing/position of where the screensaver was
- Wallpaper system starts a new video player and syncs it exactly
- Your mac wakes up, screensaver is hidden (it's complicated), and the second video player starts playing and slows down
- Eventually it gets replaced by a static screenshot of the last played frame seamlessly
- Screensaver exits (maybe, sometimes)
It's fairly complicated.
> what the performance hit during those few seconds of video playing when unlocking
Minimal, it's all hardware accelerated (videos are 4K/h265).
> is the video just "paused" or is it taking a frame and setting that as the background for better performance
It takes the last decoded frame eventually, but it's not instantaneous.
There are tons of other interesting tidbits about the system, I tried to untangle it because Apple introduced some really annoying bugs in the screensaver system as they changed the way screensavers exits because of the XPC handshake, and it threw a lot of issues in Aerial and other 3rd party screensavers.
Also if you use Spaces or multiple monitors, because you were able to have a different wallpaper on different Spaces/monitors, Apple now lets you set a different screensaver on each. That broke the ability to set a default screensaver which is a pain for 3rd parties.
Note that the "screensaver/wallpapers" videos are 4K/240FPS (likely interpolated frames for many) just to get that smooth slowdown effect. And they backported pretty much the entire catalog of existing Aerials to that format, even if only a few are available in macOS.
I do use these (the whole collection) in Aerial and for a few years I've also had a desktop version if you want to give it a try, it's in the installer. By default I use the 240FPS videos nowadays, and the desktop tool (Aerial Companion) will play those back at slow speed too by default (there are playback controls) : https://aerialscreensaver.github.io