progriumJeff Lindsay

Telecons devlog: actually using it

Today I made a bunch of progress testing and refining a project called Telecons, as in "teleconsole." The idea is to build a hybrid of Parsec and Moonlight: low-latency, high-resolution screen streaming, but as a small, simple core instead of a proprietary product or a bloated open source one.

This was supposed to be a little update. But it's very easy for me to end up explaining everything to get you up to date, so it's now much more than that. It's still not coherent enough to be a full article, so call it a long devlog.

The landscape

Parsec is sort of the gold standard in low-latency cloud game streaming. It's been tuned to work well over the internet, and they wrote about it a fair amount, so it's well documented. For the longest time they only had a Windows host, but they've since gotten a Mac host and are one of the better Mac screen sharing technologies. Unfortunately, they were bought by Unity. The product is still available standalone, but who knows for how long.

Moonlight came out of NVIDIA's thin-client devices. I think they were called NVIDIA Shield, and they stopped making them. The protocol became very popular for local screen sharing, specifically for games. There's an open source host for the Moonlight protocol called Sunshine, and there are Moonlight clients on lots of platforms. Moonlight is geared towards local area networks.

Stadia, if you remember it, was another approach to cloud streaming. They had a special gamepad that connected directly to the internet to cut out as many hops as possible for input. It failed as a project and a product.

Steam has Steam Link and Remote Play. It's the same technology across devices running Steam, but you have to tie into their game services to use it.

There's a handful of stuff that falls in between. Most recently I saw Selkies, which I think is tied specifically to Wayland and streams to the browser.

All of these take different approaches to networking and to getting low-latency, high-resolution video, which still seems somewhat unreal.

Why it's such an interesting problem

This is a systems engineering problem where you're trying to reduce latency at every level. Google went as far as releasing a gamepad that connects directly to the internet. And there are a lot of edge cases across all the combinations of inputs and host systems.

Zero copy

The big trick I first learned about, which I think was specific to NVIDIA for a while, is encoding directly off the video card's frame buffer instead of copying it anywhere first. Zero copy really matters when you have a very high-resolution frame buffer that you're trying to send over the network 30 to 60 times per second.

Video versus drawing commands

If you can do low-latency, high-throughput streaming for games, you should be able to do it for desktops and general computing. If it can do games, it can do anything.

One of the interesting trade-offs is that this approach goes full-on video encoding, like streaming a movie or a video call, just with very low latency. That comes with artifacts, and a crisply drawn GUI starts to soften or look kind of weird.

Classic remote desktop technologies fall between two extremes, and sometimes do a hybrid:

  • Send full frames and partial frame updates. Almost like taking a screenshot and sending it. VNC worked this way.
  • Send the commands to draw the frame. This is what Plan 9 does. In a way, it's what GPUs do. I'm pretty sure RDP does some of this.

Ideally the static stuff is drawn by instructions, because instructions are much cheaper to transfer than pixels, and when there's a lot of motion you switch to an encoded video stream. The best version detects when a portion of the screen is playing video, like a YouTube video, and uses video encoding for that region while everything around it is drawn by commands or larger chunked high res tiles.

Video calls are another way to handle this. There, the priority is usually timeliness over quality. You can drop frames, and you can here too. But when bandwidth changes, the tendency is for resolution to go down and everything gets blurry. You want to avoid that as much as possible and bump it back up as soon as you can. With video calls the video is less important than the audio. Here the video fidelity is way more important.

More than video

Remote desktop is a multi-channel, bidirectional stream. It's not just the screen. It's audio, synced to the video. And it's input: keyboard, mouse, gamepads. There are all kinds of gamepads, all kinds of mice, trackpads versus mice, and all of it has to be translated to the host system. If the host has a mouse-driven GUI and you only have a gamepad, you want something like a gamepad-driven virtual mouse, which I really like.

You can imagine audio in both directions too. That's more niche and I don't see it as much. If you're playing a game with friends, you're usually chatting on Discord or TeamSpeak, out of band. But it could all go through the same session.

Faking a gamepad

Once you actually try to implement this, you hit details like: how do you fake a gamepad on the host? Gamepads usually go directly through drivers.

Mac requires a special entitlement to create a virtual gamepad device, which makes it kind of impossible without Apple's permission. I don't know what that's about. Windows has drivers you can get. Linux is a lot easier. The browser is very easy, because the whole DOM is monkey-patchable. You can make the gamepad interface look like it has multiple gamepads.

Getting the stream into the browser is a common wish for these systems. I don't think Parsec, Steam Link, or most of the others support it, but Selkies and a few others do. And of course there are plenty of browser clients for VNC and remote desktop.

How Telecons is built

The core is very much over my head, so it's written by AI. I have a general understanding of this stuff from working with it for a long time. But actually implementing the video codecs is another matter. Video on its own, with color spaces and HDR and all of that, is its own universe. Then you put networking on top of it.

An I/O-agnostic core in Zig

The idea was to write an I/O-agnostic core in Zig. I'm doing a lot of Zig, so it helps that it's all the same language. Zig is also C ABI compatible, so when you're dealing with shared libraries it's as if you wrote it in C. You can't say the same about Go. Rust is kind of close.

Peer-to-peer transport

Around that core, I wanted a peer-to-peer transport. If you're streaming video, you're usually using UDP and a lossy, fire-and-forget protocol for timeliness. That opens up peer-to-peer. It does require some infrastructure for NAT traversal and hole punching, but once you have that, it's a direct connection. You're not going through another hop, so you're reducing latency.

The other thing I like is that it's a little easier to use, in theory. You're not dealing with IPs and subnets and routing. The server shares a ticket, you give the ticket to the client, and that's all the client needs to connect. Technically it's a bunch of information encoded in a base64 string. It's kind of like a URL, without having to actually have anything up online.

I've been working a lot with tailcat, which Tailscale released as "Tailscale without Tailscale." It uses their infrastructure to do peer-to-peer WireGuard, then runs a userspace network stack on top of that. So you get full network semantics, which can be useful.

The alternative is Iroh. If I remember right, it started as an IPFS offshoot or pivot. It's interesting because it's more about streams than files or block stores. That makes sense to me, because the internet is all about pipes and distributed systems and message passing.

Iroh is great because it's really simple. It takes QUIC, which is a great multiplexing, bidirectional reimplementation of TCP over UDP with a lot of properties I love, and adds NAT traversal and peer rendezvous. So you get peer-to-peer QUIC connections. That's basically all Iroh is, though they have a bunch of other technologies around it. And depending on how deep you go into the QUIC implementation, it's a fully customizable TCP-like stack where you can tune all the parameters for different use cases.

So Telecons uses QUIC via Iroh as the baseline. Originally it was going to be just WebTransport, thinking about the browser, and possibly WebRTC, but that introduces a lot of other stuff. For now it's Iroh, peer to peer. It uses the Rust implementations directly, even though we have some Go ports, because the Rust QUIC implementations give you a lot more control.

From Moonsec to Telecons

This project was originally called Moonsec, putting together Moonlight and Parsec. I hated that name.

I had Claude go do a bunch of work and run tests on my computer, figuring out latency and draw times and collecting all kinds of data. It learned how to do capture on all the platforms, which each have different systems for screen capture, audio capture, and input. On the other end, the client has to display it somehow, capture input, and send it back. It's a lot of work. The goal was a good core that could do much of that independent of its transport.

It got to a point where it had done a bunch of stuff and had some things working. But it was built from spikes and tests, not as a defined product. I really just wanted it to explore the technology and build out this corpus, this library. At some point it was a blob that I didn't know what to do with next.

Today: actually using it

A command line interface

Just today I had it spec out what an actual command line interface would look like.

Projects like Moonlight and Sunshine feel very bloated. You run Sunshine as a host, and its configured with a web UI. In the web UI you create an account and manage users and passwords. Then instead of just sharing your screen, you create different profiles for different games, with all this configuration.

I just want to share my screen and connect to it on the other end. Something simple, like remote desktop or VNC. So that's the initial form factor: a command line tool where you say share on one end and it gives you a ticket. On the other end you say connect, give it the ticket, and it just works.

An iPad client

Claude can do a lot of headless tests, and I can give it access to some machines. But without a user actually trying it out and doing real things with it, it wasn't going to go anywhere. So today I really started using it, starting with the CLI and then creating an iPad client.

I could share my Mac screen and connect to it from my iPad, and just leave it on as a mirrored screen, watching for when the quality goes down. I went back and forth between using my laptop and using the iPad with a keyboard, noting things to improve. For example, when you use the trackpad on the iPad keyboard for scrolling, it should have that classic iOS momentum.

I also wanted a mouse mode for gamepads: the left analog stick controls the mouse and the right one is the scroll wheel. Getting that to feel good took some work. A gamepad mouse is great for the Apple TV, and it made an Apple TV client that I haven't tried yet. I've mostly been using the iPad.

I'm on a Wi-Fi network and it's really good. If there are no network hiccups, it's very high resolution, very smooth, very in sync. I can watch YouTube videos. Initially the audio wasn't working, so I'd have audio coming out of the MacBook while watching on the iPad, and latency was low enough they seemed in sync.

Streaming Madhouse

Later on I wanted to play around with streaming my friend's game Madhouse, which is a GameMaker game. He uses Parsec or Steam's Remote Play when he does playtests.

But wouldn't it be great to have your own streaming tech that could do things those can't, like let people play your game from a browser? It's really a multiplayer game, and the quicker you can get someone into a multiplayer experience with you, the better. If you own the game and want to play with friends, you could just send them a link, like Jackbox. Except it's a cool local multiplayer action game. I've been trying to get closer to that, and I pushed on it tonight.

There are all kinds of problems surrounding this. It's a GameMaker game, he builds it on Windows on x86, and he doesn't do other builds. We once tried an HTML5 build, but it didn't work because of shaders. And I don't have a Windows machine here.

It turns out I can run it in CrossOver, which is basically Wine wrapped up, sort of like Proton. That worked pretty great: streaming from my Mac to the iPad and playing with a gamepad.

A Windows host in Ohio

I wanted to see what it would be like over the internet, not just locally, so I booted up a Windows host on AWS. I hadn't tested with a Windows host, and there were a bunch of things to fix. Those are fixed now. There are probably more, but it's great to know it actually works with a Windows host.

Unfortunately, the Madhouse build that works on my Mac under CrossOver does not work on an actual Windows machine. Maybe it's because Steam isn't installed, or more likely because the machine doesn't have a GPU.

So I tested with another GameMaker game: the original Spelunky Classic, by Derek Yu, another friend of mine who uses GameMaker. It runs on Windows, and it plays surprisingly well for a server in Ohio when I'm in Texas.

Why this matters

There's a lot you can do with this technology. It's why I've been interested in it for so long: exploring NDI, trying to reverse engineer Parsec, breaking apart Moonlight and the others to understand them.

It's basically a remote console. It's remote computing. The fidelity of that used to be either a terminal or some subpar remote desktop protocol you couldn't use for real things. It was limited to administration, and you might as well use a terminal for that. If you actually want to use your computer, browse the web, watch YouTube, and play games, you need something much better. That's what we finally have now.

Unfortunately it's been packaged up weird: either a proprietary product, or an open source project that's bloated and complicated. I just want a simple little library core, because then there's so much you can do with it. You can embed it in a game and do the browser multiplayer I was talking about. Even just a command line version is useful. There are command line versions of VNC and the like, but nothing of this caliber.

Where it fits in Wanix

This is relevant to the Wanix project in two ways.

First, it's very compelling to have a high-quality remote console as part of your system substrate. You can access any of your machines from any of your machines, and have it be ergonomic and high quality.

Second, there's the Hyper9 core primitive. If it had something like this built in, anything you run in Hyper9 could easily be used remotely. Not just terminals, and not just Plan 9's drawterm, which is great but has the same limitations as remote desktop and VNC. It isn't made for games and the full modern computing experience. Built into Hyper9, this could replace devdraw and drawterm to some degree.

That's a big part of why I'm exploring it. It's another one of these projects that felt impossible or overwhelming, that I was still attracted to. I've put effort into it before, but it was too much for one person, or at least for me. AI, love it or hate it, is making this stuff possible and letting me explore and build better versions of this technology.

I'm very happy with how things are going. I think you should be excited about it too.

November 2026 →