Spatiand
Other computers

Not a remote desktop. Remote windows.

The machine on your face is small. The one under the desk is not. spatiand-host runs there and hands each of its applications to the glasses as a window of its own, hung beside the local ones, with its sound at the window and your controller in its hands.

Drag to turn the head. Click a window to make it change.

How the host paces itself: the window you are looking at is sent at the session's full rate, others in view at half, those behind you about once a second. A window that is not changing sends nothing at all.

How it works

A small compositor with no screen.

The host is a headless Wayland compositor. Applications open on it as they would on a desktop; what it shows them to is a pair of glasses somewhere else.

Encoded on its GPU, decoded on yours

HEVC by default, AV1 where both ends have it, H.264 as the fallback. The host renders straight into the encoder's own surface, so nothing is copied.

Sound from the window

Each application has its own output on the host, carried raw and placed at its window like a local one's, up to 7.1.4.

Everything goes the other way

Keys, both pointers, the microphone, and the controller, as a gamepad of the host's own with rumble coming back.

Paired by a code that is never sent

The host shows six digits and the wearer types them. Both sides prove they know the code without sending it, and know each other by certificate from then on. Three wrong codes and the door shuts.

Applications outlive the glasses

Take the glasses off and the programs keep running. Put them on, anywhere, and the windows are handed back.

One clipboard

Copy on one machine, paste on another, in both directions. Notifications cross too, and a Mac application's menus arrive as a list in the room.

An application can be the room

A viewer on the host can draw the world round you and turn it with your head, while local windows float in front. SpatiWorld does.

A Mac is a host too

Its open windows and its screens appear in the list of windows on a Deck or a Beam Pro, and are used like a Linux host's.

And a Mac is a client with no glasses

On a Mac's ordinary desktop, a host's applications open as ordinary Mac windows, with mouse, keyboard, clipboard and sound.

Measured

Numbers, and what they were measured on.

A Steam Deck as the client; a Linux machine with an AMD GPU as the host; home Wi-Fi, through Tailscale.

1.2ms

to compose and encode a 1280×800 frame on the host

3.7ms

to decode a frame on the Deck

390fps

of 1080p HEVC the Deck can decode in all: about five windows at 72

1.5Mbit/s

for a quiet page at about 57 pictures a second, none lost

One evening, counted

Seventy-six minutes in a Second Life viewer streamed from the host: 159,349 frames sent, 12 lost whole, a median round trip of 11.2 ms (18.5 ms at the ninetieth percentile), and no disconnection.

Not measured yet: the delay from glass to glass, against Sunshine and Moonlight. There is no webcam, and a file copied between machines copies its path, which does not exist on the other one.

Found the hard way

Four bugs worth the telling.

Keys that stuck

Every key press and release went on a stream of its own. Each arrived, reliably. Sometimes the release arrived first. “It was reliable. It was never ordered.” Now there is one ordered stream.

Typing one key late

Letters appeared a keystroke after they were typed. The encoder was holding a frame back to work on two at once.

A smeared picture

One field, the frame rate, was left at zero, and the encoder spread its bits over a second that never ended.

A frozen window that was not the network's fault

The lesson is on the wall of the document: “A remote window freezing is not evidence about the remote link.”

The whole account, with every measurement →

OpenXR

A runtime of its own.

OpenXR is how games and viewers talk to headsets. Spatiand has its own runtime, so those programs run in the room: on the Deck, or on a host and streamed to a Deck, a Beam Pro or a Mac.

  • Vulkan and OpenGL applications run. The runtime is itself an ordinary client of the room.
  • Windows games under Proton: an Unreal Engine game has been run this way, after a one-off step.
  • Late reprojection, for the turn of the head since the frame was drawn, even over the network.
  • A gamepad stands in for hands. Your pointer aims them; the gyro can aim the right one.

SpatiQuake is a whole game built on it.

Said plainly

It is partial, and not conformant.

Of the Khronos conformance suite's non-interactive Vulkan tests, 64 pass and 39 are skipped; none fail. There is no hand tracking, no reprojection for movement, no haptics, and the glasses have about forty degrees of view where a headset has a hundred.

What is and is not there