Work/ 02 · Native · Game streaming

Starlight.

Role
Personal project
Year
2026
Stack
Swift · SwiftUI · VideoToolbox · C
A native SwiftUI game-streaming client for iPhone, iPad, Mac and Vision Pro, compatible with Sunshine and NVIDIA GameStream. Hardware H.264, HEVC and AV1 decoding through VideoToolbox with 10-bit HDR and 4:4:4 chroma, AV1 sequence headers parsed in-house without FFmpeg, and touch, keyboard/mouse and controller input.
An original game scene streamed to Starlight
2560×1600 · 120 fps
AV1 Main10 · HDR
VideoToolbox · 1.9 ms
Apple platforms
4
Color fidelity
10-bit HDR · 4:4:4
FFmpeg dependency
None

01 / What I built

  1. 01

    Host · sunshine-vdisplay

    Rust · Windows

    • A companion tool for Sunshine: on stream start it creates a virtual display matching the client’s resolution, refresh rate and HDR, and tears it down on disconnect — or if the tool crashes.
    • Each client gets its own monitor identity, so Windows remembers per-device scaling.
  2. 02

    Wire · MoonlightCore

    C · CryptoKit

    • A lean C bridge around moonlight-common-c with hardware-accelerated CryptoKit AES-GCM, Keychain certificate storage and Bonjour auto-discovery.
  3. 03

    Decode · VideoToolbox

    Swift · VideoToolbox

    • Zero-copy hardware decoding of H.264, HEVC and AV1 straight into AVSampleBufferDisplayLayer, with 10-bit HDR and 4:4:4 chroma.
    • AV1 sequence headers are parsed in-house, so the client ships without FFmpeg.
  4. 04

    Play · Input

    SwiftUI · AppKit · GameController

    • Multi-touch and absolute trackpad modes, low-latency mouse capture on macOS, and full controller support with haptic rumble and adaptive triggers.

02 / Screens

Starlight screenshot 1
Starlight screenshot 2
Next projectSignalBridge