Skip to content
What It Takes to Upscale Video at 60 FPS With WebGPU

What It Takes to Upscale Video at 60 FPS With WebGPU

At 60 fps, a video player needs a new frame every 16.7 milliseconds. Twitch, ONNX Runtime Web and LiteRT.js show where an upscaling pipeline can lose that time.

Published
Reading
2 min
What It Takes to Upscale Video at 60 FPS With WebGPU

At 60 frames per second, a video player owes the viewer a new picture every 16.7 milliseconds. At Google’s 2025 Web AI Summit, Twitch engineer James Hurley described using a convolutional neural network on the viewer’s GPU to upscale video to 1080p or 1440p at that pace. Several frames can be in flight at once. What the viewer sees is whether the next one is ready when the display needs it.

Two talks from Google’s 2026 Web AI Summit pick up where Twitch’s example leaves off. A model can finish on time and the player can still miss a frame. ONNX Runtime Web and LiteRT.js show where those milliseconds go as an app issues GPU commands and passes the result to its renderer.

Real-time video upscaling using CNNs and WebGPUWatch on YouTube (opens in a new tab)

Record the work that repeats

Two frames can show completely different scenes and still ask the GPU to do the same sequence of operations. Devang Patel explains how ONNX Runtime Web can record that sequence once and replay it for later inferences. The pixels change with each frame. The runtime saves some of the work of telling the GPU what to do with them.

ONNX Runtime’s graph capture requires fixed tensor shapes and a model whose compute kernels all run on WebGPU. A fixed-resolution video filter is a good place to look for that pattern. Graph capture at 3:41 · ONNX Runtime’s requirements

OnnxRuntime WebWatch on YouTube (opens in a new tab)

Keep the pixels on the GPU

Suppose a model produces a mask that the next rendering pass will paint over a frame. If the app reads the mask into JavaScript and then uploads it again, the same data crosses the CPU–GPU boundary twice. The renderer could have used the mask where it already was.

In their LiteRT.js talk, Chintan Parikh and Ping Yu show how adjacent stages can share accelerator buffers. If you are debugging a slow filter, put a timer around the handoff between the model and the renderer as well as around the model itself. Zero-copy pipelines at 6:00 · Google’s tensor buffer example

Scaling on-device web AI with LiteRT.js and WebGPUWatch on YouTube (opens in a new tab)

A sharper frame still has to arrive on time

Imagine a Twitch stream following a footballer across the pitch. In a paused frame, upscaling might make the number on the shirt easier to read. During the pan, the video player has to deliver that detail sixty times a second. A command it can reuse and a buffer it can leave on the GPU each buy a little time before the next refresh. For the person watching, that can mean reading the number without ever pausing the play.

Found it useful? Pass it on.

Sharing is how a good article finds the people who need it.

Post it on

Copy post text

If a composer opens empty, copy this text. For long posts, split it across posts and keep every maker’s credit.

More in Image Processing

Browse this tag →