Between pressing W and your character taking a step, a whole chain of parts inside the computer does its job in turn, from the chip in the keyboard to the liquid crystals in the monitor. I made a web documentary, Inside a Computer in 0.05 Seconds, that stretches out that tiny slice of time. In this post I'll show, with real code, how I stretched time, how I drew the game on the monitor, and how I kept the narration in sync with the picture.
A timetable that turns 60 ms into 8 seconds
The title's time axis runs from 0 to 60 ms (milliseconds, thousandths of a second). Zero is the moment the metal contacts under the W key touch. Press the "Press W" button at the bottom of the screen and those 60 ms play out over about 8 seconds — slow motion roughly 130 times slower than real life.
The project has one rule: time lives in one file only. timing.ts lists the start and end of each stage, and the 3D view, the counter in the top left and the explanation cards all read from it. For example:
usb: [8, 8.4] as const,
/** interrupt → driver → OS input queue → game */
os: [8.4, 9.2] as const,
That means the signal travels down the USB cable from 8 ms to 8.4 ms, and the operating system handles it from 8.4 ms to 9.2 ms. Change it in one place and the scene timings follow, so the numbers never drift apart. These values come from a model that assumes USB polls every 8 ms, the game updates 20 times a second and the monitor refreshes 60 times a second. Real latency varies by tens of milliseconds depending on hardware and settings.
All the motion is a single timeline in GSAP, an animation library. But the timeline never plays on its own. It stays paused; I just tell it "it's now X ms," that sets a progress value, and a function called sync() uses that value to decide where each light is, how bright it is and whether it's visible. It works like dragging a video's progress bar to any point, so you can scrub the time axis back and forth without the picture getting tangled.
The game on the monitor is pre-drawn
A block game is running on the monitor on the desk: a boxy character in an orange hoodie, in a scene made just for this title. It isn't a pasted-in photo — it's a second real 3D scene drawn with three.js.
The trick is a render target. Normally a 3D scene is drawn straight to the browser window, but a render target lets you draw it onto an invisible canvas first. I drew three versions of the game scene onto a 640×360 canvas: before the step, after walking one tick (one beat of the game's calculation), and pulled back three ticks. One tick of walking is 0.216 blocks — a walking speed of about 4.3 blocks per second divided by 20.
The third picture is for the "what if the ping is high" scene. With a 200 ms ping, the server snaps your position back, and the monitor switches to the pulled-back picture.

A shader that changes the picture as the scanline moves down
A monitor doesn't swap the whole picture at once. It receives it over the cable one line at a time from the top, and getting all 1,080 lines takes 16.7 ms. So the top of the screen changes a little before the bottom. To show this, the monitor's screen has a shader — a small program that has the GPU calculate the color of every single dot on the screen.
float passed = k - y * scanDur;
float m = clamp(passed / lag, 0.0, 1.0);
c = mix(o, n, m);
Just three lines to read. k is the time in ms since the frame started sending, and y is the dot's height (0 at the top, 1 at the bottom). We work out how long ago the scanline passed that height (passed), divide by the 3 ms the liquid crystals need to change color, and get a value between 0 and 1. That's how much to blend the old picture (o) into the new one (n). So above the bright line you see the new picture, and below it, where the line hasn't reached yet, the old one.

The character sits 48% of the way down the screen, so you only see it move at about 51 ms — once the line reaches it and the crystals have had 3 ms to turn. The same shader also draws the small "frame buffer" screen on the GPU, which fills its 16×9 tiles in a shuffled order instead.
A camera that dives into the chip
In the CPU and GPU scenes, the camera goes inside the surface of the chip. There's no button that switches scenes. Every frame, I check whether the camera is facing the chip and whether it's close enough; if both are true, the chip's outer shell is hidden and the model inside is shown. The camera's position alone decides whether you see the outside or the inside.
Inside the GPU are 2,560 small squares: 4×4 in each of 16×10 groups. They're made with three.js's InstancedMesh, which draws one shape in many places at once with only the position changing, so all 2,560 can be handled as one piece instead of one by one. To show how the three stages differ, only some squares flicker in the vertex stage, columns light up in turn in the raster stage, and almost all of them blink in the pixel stage.

The audio file is the clock
Documentary mode plays the 22 scenes in a row with narration and subtitles. It uses just one clock. There's no separate timer — the current playback time of the narration file is the time. So changing the playback speed or pausing keeps the picture in step with the voice. If the audio file is missing, it falls back to the browser's built-in speech, and if that fails too, to a virtual clock that just advances the subtitles.
When the scene changes, time jumps from the previous scene's moment to the new one over about 1.4 seconds, and while the narration plays, time flows slowly from the scene's start to its end in ms. The voice is Google's Chirp 3 HD voice (Aoede) at 0.95× speed. Out of the box it paused only about 0.3 seconds at commas, so the phrases ran together; I added a pause marker of about 0.8 seconds at every comma and regenerated the audio for all 22 scenes.
If you want to see the code in action, slowly drag the time axis in Inside a Computer in 0.05 Seconds. Around 40 ms, a bright line starts moving down the monitor. The project's skeleton came from another title in the series, How an Apartment Rises. Documentary mode came from there too, with only the time axis switched to milliseconds, so it's fun to compare how the same structure works for a construction site.