Dawnglass #1: Getting WoW from my MacBook to the TV in 4K
Getting WoW from my MacBook to the TV in 4KMichel HendriksAirPlay only gave me 1080p. Sunshine and Moonlight gave me 4K, until the keyframes kept falling apart on the way to the TV. One new setting in Sunshine fixed it: 4K at 60 fps, over Wi-Fi.
A while ago I bought myself a MacBook Air M5. Then came the World of Warcraft Forever announcement, and I got excited. Before I knew it, I went from maybe playing WoW on my laptop to playing it in HDR, with an image enhancer I built for Apple’s Neural Engine.
One evening, I’d been watching WoW Forever videos on TikTok and thought: I have a new laptop, it’s supposed to be decent, maybe I should give it a try. But I like chill gaming sessions on my couch. So I looked at playing WoW on my TV.
First try: AirPlay. The image wasn’t great, and I couldn’t find a setting to fix it. So I asked Claude, and learned that AirPlay doesn’t do more than 1080p. Fine. Then what are my options for 4K on Android TV? Answer: Sunshine and Moonlight.
The setup: BetterDisplay gives the MacBook a second, virtual 4K screen in 16:9. WoW runs on that screen. Sunshine captures it and streams it, and Moonlight plays it on my (Google) TV. Yes, an HDMI cable would have been easier. But I wanted to see how far I could get wireless first.
The first results were disappointing. Choppy video, or no video at all. Moonlight kept warning about a slow connection and reported 80 to 90 percent of frames dropped by the network. Every now and then it just gave up and disconnected. Not good at all.
The problem was in Sunshine. It sends every frame in one go, as fast as it can: about 800 Mbps. But my TV is connected with a cable, and its network port only does 100. Small frames get through fine. But every now and then the stream sends a keyframe, a complete picture the next frames build on, and in 4K that one is big. It didn’t fit through in one go, the end got lost, and without a complete keyframe the TV has nothing to show. So it asked for a new one, which got lost too.
I asked Claude if we could fix this. We could: we built a new setting in Sunshine, video pacing. Instead of sending a frame in one go, it spreads it out a little, at a speed the TV can keep up with. I run it at 80 Mbps, just under what the TV’s port can take. Now the keyframes arrive whole, and I get what I was after: 4K at 60 fps in HEVC, with Moonlight set to 50 Mbps, because HEVC gives the most picture quality per megabit. About 4 ms of network delay. I’ll keep tuning it, but this is the setup I play on now.
About two weeks later I saw Jansn Benchmarks’ videos of World of Warcraft with DLSS 5 on YouTube. A bit too much for me, but I was fascinated. How much of that would my MacBook be able to do? I asked Claude again. The Mac has a Neural Engine, so you could try something with a small model. Same evening, the idea was there.
That idea is Dawnglass: an image enhancer that runs on the Neural Engine, inside Sunshine, between capturing the screen and encoding the stream.
Next part: what my MacBook actually has to spare while WoW is running.