Windows game streaming, written in Rust. Built for Radeon and Moonlight.
Download Windows x64 installer · Portable ZIP
New in 2.2.0
- Frames arrive just before the phone's screen refreshes. A Rubylight client can report, about every half second, how early each frame is ready before its display refreshes (control message 0x5530). The host then times its captures to the client's exact refresh rate, at a phase that gets each frame there with a small margin before the refresh, instead of letting two independent clocks drift: without it a 120 Hz phone waits anywhere from nothing to a whole refresh (8.3 ms) for its screen, and the wait swings from minute to minute. A 60 fps stream to a 120 Hz screen uses two refreshes per frame, and a frame rate that is no whole fraction of the screen's keeps the host's own pacing. Clients that never report, and VRR streams, are paced exactly as before, and after 3 s without a report the host returns to its own pacing. Unit tests check the lock and that pacing without reports is identical to 2.1.0; the host log says
phase lock appliedabout every ten seconds while it is active. - Error correction follows the network. Moonlight clients can report each frame they had to repair with error correction or could not rebuild; until now the host only counted those reports. Now it uses them: a repaired frame raises the share of recovery packets at once, a frame that could not be rebuilt puts it straight back to the configured Error correction percentage (
fec_percentage, 20 % by default), and after 5 seconds without either it falls by one point every 2 seconds, down to 5 %. The configured percentage is never exceeded, the client's minimum number of recovery packets per block still applies, and a client that sends no reports keeps the configured percentage for the whole stream. The encoder bitrate is not changed. Adapt error correction (adaptive_fec, on by default, also per device or app) turns it off, and the stream is then sent exactly as in 2.1.0. The log saysadaptive fecwith the old and new percentage, at most once a second, and the session API shows the currentfec_percent. The rules are checked by unit tests: no reports, loss, a clean link, turned off, and the limits. - HDR metadata for the client's own screen. A client can now tell the host its screen's peak, frame-average and black luminance (control message 0x5531). In an HDR stream the host then describes that screen in the HDR metadata it sends the client and writes into the video: the peak as mastering display maximum and MaxCLL, the frame-average as MaxFALL and the black level as mastering display minimum, so the client tone-maps for its real panel. An HDR profile selected for the device on the host, or a peak brightness set for the device or app, takes precedence. When the screen changes during a stream, for example on a foldable, the HDR message is sent once more, and only if the values changed; clients that never send 0x5531, such as Moonlight for Xbox, get the single message they get today. The log says
display capswith the values and what was applied. The game still renders for the host display's peak, which a virtual display gets before the client connects. Checked by unit tests. - The host lists the control messages it takes. The RTSP
DESCRIBEanswer now carriesa=x-rl-control:0x5530,0x5531,0x5532, so a client sends Rubylight's own control messages only to a host that takes them. Control messages describes them for client authors. - The stream follows the client's screen. A Rubylight client can ask for another resolution or frame rate during a stream (control message
0x5532), for example when a foldable phone opens its inner screen, and the host switches without reconnecting. It applies the latest request once the client has stopped asking for 200 ms, at most once a second, recreates the encoder at the new size and sends a keyframe at that size; pacing and the phase lock follow the new rate. The PC's display keeps the mode it got at the start of the stream, and the picture is scaled to the new size between black bars where the shapes differ. A request for the current mode is ignored, an encoder that cannot make the new size keeps the old one, and PyroWave streams keep their mode.stream_reconfigure(default on) turns it off for the host, a device or an app; clients that never send the message see no change. Control messages describes it for client authors. The request handling, coalescing and rate calculation have unit tests.
Install or upgrade
Disconnect your stream and close host-launched games, then run the installer. Your settings, paired devices and game library are preserved. Open the console at https://localhost:47990.
Full release notes · Build and tests
Pre-release for testing, built from branch claude/2.2.0. Installed hosts are only offered it if they opt in to pre-releases.