How replays and clips work
What a replay records, where it lives, clips of the last 15 s, sharing and limits.
Replays are recorded in your browser and stay there unless you share one.
What a replay records
- Every game you play on our servers, from the countdown to 1.5 s after the end; a game you watch once you press Record. A game you left is kept if it ran 30 s. Private games record by default; each has a switch in Settings.
- The file is the server's own messages as they arrived (the map, players, chat, events, stats, the end) and every ball's position, speed and keys 30 times a second, packed as small changes from the last frame and gzipped. Events keep their own tick, so none are lost.
- Size, gzipped: a 4 v 4 game about 46 KB a minute, 12 v 12 about 160 KB a minute. A 10-minute 12 v 12 game is about 1.6 MB.
- Recording costs a few microseconds a message; compression runs in idle time, in the browser's own gzip.
Where it lives
In this browser's storage (IndexedDB), as .tbreplay files. The newest 25 are kept by default (Settings changes it, or keeps them all); starred replays always stay. A replay can be downloaded, loaded back, watched with seek and follow, or saved as a video, made in the browser (MP4 where the browser can, else WebM, up to 1920 by 1080). Save video picks a range (the last 30 s by default, or the whole match) and Export draws only that range, faster than real time, with a progress bar and Cancel; Sound, or a browser without WebCodecs, records in real time instead.
Paths (P, or the Paths button) draws a fading line in team color behind each ball: Off, Short (the last 1.5 s of game) or Long (4 s), kept in this browser. The lines are rebuilt from the replay's own positions each frame, so they are right after a seek, paused and at any speed; they break at a portal or a pop. A video keeps Paths as they were when it began. Live games never draw them.
Watching
- Space plays and pauses. −15, −5, +5 and +15 skip back and forward; the arrow keys skip 5 s, and 15 s with Shift. Comma and period step one recorded frame (30 a second) and pause.
- Speed: ¼×, ½×, 1×, 1.5×, 2× or 4× from the speed button, or Shift+comma and Shift+period. Game sounds play only at 1×. Any speed shows the same moments as 1×: a replay is recorded positions, so the picture at a moment depends only on that moment.
- A skip costs about one frame. The viewer finds any moment by a binary search over the frames and rebuilds effects from the last 30 s of events; nothing is played again from the start. On a 10-minute replay with 8 balls a jump back of 5 s or 15 s took 0.7 ms (2.8 ms with the CPU slowed 4 times), the same as a still frame.
- Draw (E) puts a pen over the replay: red, blue, white or yellow, thin or thick, a line, an arrow or a circle. A stroke stays on its spot on the map when the camera moves or follows someone. Drawn while the replay plays, it fades after 4 s of play; paused, nothing fades. More has Keep drawings and Stick to screen. Ctrl+Z undoes, Clear clears. In a 3D view strokes stay on the screen.
- Drawings stay on the page: they aren't saved, shared or put in a saved video. The pen draws on its own layer, there only while the pen is on or a drawing shows.
- ? lists every key.
Clips
- The Clip button, /clip or its key saves the last 15 seconds of whatever is on screen: in a game, while watching, and in the Sandbox.
- The browser keeps its own rolling buffer of about 16 s, separate from the recorder, so clips work even when recording is off. A clip is an ordinary .tbreplay file, so the viewer and sharing take it as is. Chat isn't kept in clips.
- 15 s of 12 v 12 is about 40 KB; a big map with art adds a few hundred KB.
- Signed out, up to 50 clips stay in the browser. Signed in, saved clips sync to your account: 50, or 200 with Plus.
- Clip says Clip saved with View, which opens it in a new tab so the game stays; the clip's close shuts that tab. The clip is at the top of Replays > Clips under Your clips at once, in every open tab.
- Top plays from your games are saved under From your games, below your clips, kept for your last 20 games, 30 days and 40 MB, until you keep one. When the browser's storage is full, the oldest games' top plays make room for a clip you make; your own clips are never let go for them.
- A saved clip can go to the home page strip: 3 a day, 5 minutes apart, each file once. Staff can take one off, and a removed file can't be sent again.
- A clip plays on a loop with the game's sounds: pops, grabs, caps and the crowd, returns, boosts, kicks, bombs, horns, portals, Freeze, Shock, Slow-mo and Blink, and the call when overtime starts. Each is placed by how near it is to the camera, at your game sound volume, and the game's mute applies. The sounds come from the events the clip already keeps, so every clip has them, old ones too; a clip with none of those events greys out its Sound button.
- A browser plays no sound on a page nobody has clicked yet, as with a clip opened in a new tab: the clip plays silently with Sound on, which starts it over with sound. The Sound button mutes clips in this browser until you turn it back on. A seek or the loop's restart cuts what is still ringing.
- Full replays play the same sounds the same way, at normal speed. Home's clip strip stays silent.
Sharing
- Signed in, share any replay for a public link, /r/ and 12 characters of the file's SHA-256: the same file always gets the same link.
- The server checks the file before keeping it: the format, the modes it knows, at most an hour of game, 3 MB gzipped and 24 MB unzipped.
- Limits: 50 active shares, 200 with Plus; 20 uploads an hour; 3 GB for the whole site.
- Views count once per network per 6 hours, never the sharer's own.
- The sharer can unshare; moderators can remove any share, and a removed file can't be shared again.
- Shared files are kept in 1 MB parts in the server's database until file storage moves to R2.
Privacy
Nothing is recorded on our servers: a replay leaves your browser only when you share it or send a clip. Private messages and voice never go into replays.