Log inGet started
World

Kit Speed Lab: Repeatable Benchmarks for Kits and Games

README.md

speedLabAfterglow

Version 0.1.5. The Kit Speed Lab's benchmark set for Afterglow Live, a rhythm game played over a live stage: encoreStage's song select, groove meter, grades and modes over Downbeat's note highways, with pulseRig's stage lights, speakers, LED screens, lasers and a dancing crowd moving to the music (game world e9062f1e-35cf-4804-9338-0c3c359f6e65; kit world bb1930e9-a6af-4cf4-98f1-5084a3d75acb).

It measures what a rhythm game on a stage costs: the song select in front of the idle stage, normal play on autoplay ("rhythm game lag", "notes stutter"), the busiest song on hard from its start, the worst case ("concert lights lag", "crowd lag on tablet"), three fixed views, a camera fly-through, two players, and a five-minute soak with memory sampled, which shows whether memory stays flat. Each runs on desktop settings and at tablet settings.

The worst moment is the busiest section of the busiest song: the song whose hardest chart has the most notes (Afterglow's Thunder Bloom, 172 bpm, in the neon club look, where it is installed), at the 16 s of that chart with the most notes, found from the chart itself; the stage held at full energy with every laser in, confetti, flame jets and blinders on every bar, and the full crowd jumping (pulseRig quality high).

Everything is driven through the kits' public API: encoreStage's game (start, play, set { autoplay }, setNoFail, quitSong, openSelect, state) and library (list, chart), Downbeat's rhythm (the song clock) and pulseRig's pulse (setEnergy, burst, setQuality, on("bar"), buildStage, followDownbeat). Every song is played on autoplay with no fail, so the combo climbs and the stage reacts as it does for a player who hits every note. A rhythm game here is local to each player (each hears their own music and sees their own stage), so every peer runs its own benchmark. Where a pulseRig stage already runs (Afterglow's rooftop), the set plays on it; anywhere else it builds a neon club stage with a 260-person crowd at (3000, 0, 3000) and points it at Downbeat's clock.

  • speedLabAfterglow.set: the benchmark definitions, registered with Lab.register (id afterglow).
  • speedLabAfterglow.results: Afterglow Live's before and after numbers, desktop and browser (encoreStage 1.1.4 to 1.1.5).
  • Guide: How to measure how fast a rhythm game on a live stage runs.
  • Example guide: Example: speeding up Afterglow Live's busiest song with the speed lab, start to finish.

Where to run it, and which numbers to compare

There are two places to run this set, and they give different numbers:

  • On the lab's board (the Kit Speed Lab showcase): open Afterglow's card, press Details, then a Run button. There the set builds its own neon club stage with a 260-person crowd and plays encoreStage's demo songs, because Afterglow Live's rooftop, songs and HUD theme belong to the game and are not in the lab. Compare with the rows marked LAB BOARD. The board has no "Run worst" button yet: "Run stress" runs the busiest song from its start, and "Run 1p" or "Run all" include the worst case among the others (and take over half an hour with the soak). In play, zero speedLab run speedLabAfterglow.set worst runs the worst case alone.
  • Inside Afterglow Live: install the set into the game's world, enter play and run zero speedLab run speedLabAfterglow.set worst. It plays on the rooftop stage with Thunder Bloom and the game's HUD. Compare with the rows marked inside Afterglow Live.

Run every benchmark twice before you believe a number: on a busy machine the whole frame swings much more than GPU time does.

Run the whole set in play: zero speedLab run speedLabAfterglow.set (quiet, play, stress, worst, still, fly, 2p, soak, tablet pick a part). The worst case waits for its section of the song (up to four minutes of settle time), so it takes longer than the rest.

Teardown turns autoplay off, leaves the song for the select, puts no fail and the stage quality back, and removes the set's own stage (and stops the game, if the set started it).

Version history

0.1.5

  • Round 14 results in the headline: encoreStage 1.2.2 (groove meter strip drawn still) measured inside Afterglow Live, desktop and browser, alternated pairs. Benchmarks unchanged.

0.1.4

  • Results, round 8: two LAB BOARD worst case runs before and two after, made with the board's own call. In the lab hall most of the script time was animatedMaterials' clock, not Afterglow: the lab held two copies, and each read its 28 materials again on every frame because none were found there (about 22 ms a copy a frame). With animatedMaterials 1.0.22 by install in the lab, scripts drop from 53 to 56 ms to 7 to 19 ms and engine CPU from 68 to 33 to 41 ms; the wall frame stays at 61 to 74 ms on the shared machine. The music played in every board run on the current lab (no "song not found" line). The notes say why the lab hall differs from inside Afterglow Live. The set itself is unchanged.

0.1.3

  • Results: which numbers belong to which place. The first rows are what the lab board measures (the set's own neon club stage and encoreStage's demo songs, in the lab hall: worst case desktop p50 38.7 to 74.7 ms over four runs); the rows measured with the set installed in Afterglow Live are marked "inside Afterglow Live" (worst case p50 18.3 to 23.5 ms). Before and after are Downbeat 1.3.3 and 1.3.4 (no error when Downbeat closes, no warning at song end; not a speed change). Why script time is higher on the board and jumps between runs. The README and both guides say where to run it and which button to press. The set itself is unchanged.

0.1.0

  • First set: quiet, play, stress, worst (the busiest section of the busiest song at full stage energy), still, fly, 2p and a five-minute memory soak, each for desktop and tablet; plays on Afterglow's stage or builds a neon club stage; the how-to and example guides; results empty until measured.

0.1.2

  • Results: round 6b repeat of afterglow.worst on encoreStage 1.1.5 (four runs, p50 22.4 to 33.9 ms; GPU and scripts steady, engine CPU swings with the shared machine), why a whole-frame repeat does not land within 15% here, the song-end Downbeat warning, and which modes share a song between players. Guides match. The set itself is unchanged.

0.1.1

  • Results: encoreStage 1.1.4 to 1.1.5 (the song HUD sent only when it changes, the groove meter on its own small screen): the HUD's cost 2.05 -> 1.63 and 2.34 -> 1.97 ms a frame in the busiest section, its own UI layout 1.16 -> 0.73 ms; browser too noisy to claim a cut; soak memory flat. The set itself is unchanged; it now names encoreStage 1.1.5.
  • The example guide walks through what was really done, with these numbers.