The engine decides, the model paints

Matrix-Game 4.0 from Skywork AI cuts a game into two jobs. Normal game code handles movement, hits and input, and renders a crude low-poly picture. The neural network turns that picture into detailed 864 x 480 video, four frames per step. We call each step a chunk. Gameplay never depends on its output, says the model card (the page that documents it). Compare Hy-Nomas, a world model that generates the entire scene, where the network is the physics too.

So you are not deploying a clip generator but something like a game server that owes the player a chunk on a schedule. Our test used a single RTX 5090 on our cloud and a 10-second castle take recorded from the authors' own game. Every table and command is in the full Matrix-Game 4.0 test on one RTX 5090.

Your number is the chunk budget, not the average fps

The take runs at 48 frames per second (fps). Four frames at that rate give each chunk roughly 83 ms. A late chunk means the screen lags behind the keyboard.

frames_per_chunk = 4 take_fps = 48 budget_ms = frames_per_chunk / take_fps * 1000 # 83.3 ms per chunk 

The authors ship presets: named bundles of settings that pick a model variant and how much work goes into each frame. Typical chunk times for the three we tried:

Preset Typical chunk Versus 83 ms
rtx5090 40 ms half the budget
realtime 85 to 105 ms up to 22 ms late
quality 396 ms nearly 5x late

The rtx5090 preset loads a slimmed-down model tuned for this card and covered the take at 101 fps. Realtime, meant for datacenter cards, did 38 fps on its first render after start-up and 47 on the next two. We never found why, so plan for the range. Quality managed 10 fps: fine offline, too slow for a live game on this card.

An average hides the slow chunks a player notices. Log every one.

Model time is not what the player feels

Those speeds count only the network's work, not the CPU time spent unpacking the input video and writing the output. Counting that CPU work, the 10-second realtime render needed 18.5 seconds, roughly 26 fps. The authors count the same way and warn that encoding, network transport and browser decoding add lag. For a live setup, time key press to reacting frame, which we did not measure.

Pick one preset per machine

Every preset switch forces a full model reload: 54 to 72 seconds in our runs. Fix one preset per machine and route traffic to it. A fresh service needed 116 seconds from the first request.

The text encoder sets your minimum card

Before painting, a separate text model (the text encoder) turns the fixed scene description into numbers the painter uses. It needs 11 GB of card memory by itself. With 16 GB, the authors' rtx5080 preset worked: it runs the encoder once, then drops it from the card before painting. With 12 GB even that preset failed, because the encoder alone does not fit for that first step. The trade-off: those small-card presets only accept fixed descriptions.

Lacking smaller cards, we capped memory on the same RTX 5090 with torch.cuda.set_per_process_memory_fraction. That proves fit, not speed. Under the 16 GB cap, rtx5080 hit 128 fps on 5090 compute, while the authors report about 42 fps on a real RTX 5080. The memory ladder with real and emulated rows also shows realtime failing to load under 16 GB.

One upload limit you will hit

To serve it as an API we wrote a custom backend: a Python file our platform runs on the GPU machine, calling the authors' code unchanged. Our API rejects request bodies above roughly 2 MB, so 2 MB video parts failed and 1 MB parts went through. The SDK example now sends 1 MB parts; the platform cap is unchanged.

What it does not promise

The model card is plain: "There is no guaranteed frame rate, consumer-GPU memory fit, or exact scene reconstruction." Every scene is its own trained model (Castle, Ancient Egypt, City Racing), built around the authors' low-poly frames and camera angles. Your engine is outside that training, and the training code and data are not public. The authors' preview project page lists 83 FPS on an RTX 5090 with no method given, so it does not line up with our 101.

We rendered one clip with one seed, so treat the visual notes as anecdotes. Near 9.5 seconds, rtx5090 melted the enemy into an orange blur. Quality kept that enemy sharp, but around the 5-second mark it added a character the engine never placed.

Castle scene at two moments, 5 s and 9.5 s, shown three ways side by side: the low-poly engine frame, the rtx5090 render and the quality render, with marked boxes on the blurred enemy from rtx5090 and on the character that only the quality render contains

In a shooter, the invented character is the worse bug. The engine still decides hits, but the player wastes shots on a target the game does not know exists.

Who built what

Skywork AI made the model, the game it renders, the presets and the inference code, and published the weights (the trained model files) and game assets under Apache-2.0. Their work starts from Alibaba PAI's Wan2.2-Fun-5B-Control, a fine-tune of Wan2.2, the Wan team's video model. The fast presets rely on TAEHV, a compact open-source video encoder and decoder by Ollin Boer Bohan. We first saw the model in a video from the AI Search channel. Our share: a screenless recording of the take, the custom backend, the timings, the memory tests and the SDK example.

Recording steps, backend code and per-chunk timings are in the step-by-step Matrix-Game 4.0 deployment notes on InferenceKey.