Kit Speed Lab: Repeatable Benchmarks for Kits and Games
README.md
speedLabLanebreak
Version 0.1.3. The speedLab set for Lanebreak, the three-lane endless runner (runnerKit, kit world 156a50b3-ee36-4b2b-bcaf-8f5dd00fdab6). It measures how fast an endless runner made with runnerKit really runs, the same way every time, with benchKit: frame time, CPU and graphics card time, the biggest passes, scripts, memory and GPU memory.
Install it next to speedLab in any world that installs runnerKit. Press Run on its card on the speed lab's board, or in play:
zero speedLab run speedLabLanebreak.set
zero speedLab run speedLabLanebreak.set worst
Benchmarks
Each one is on desktop (desktop tag, budget desktop60, render scale 1) and at tablet settings (tablet tag, budget tablet60, render scale 0.75; runnerKit has no quality setting of its own, so only the render scale changes: "desktop at tablet settings").
| id | what it measures |
|---|---|
lanebreak-quiet | the harbour track on screen, standing still (the floor) |
lanebreak-play | a normal run: three lanes at 18 m/s, coins spinning, chunks streamed and parked |
lanebreak-stress | seven lanes (most obstacles and coins) at 25 m/s with a juiceKit effect every 0.25 s |
lanebreak-worst | the brutal speed curve's top speed on the seven-lane track |
lanebreak-2p | a race: your track plus the other racer's runner; measures on the player who runs it |
lanebreak-soak | five minutes of a normal run (5.4 km) with memory sampled: shows whether memory stays flat as the pools settle |
Every benchmark is built from runnerKit's public API (runnerKit.track, runnerKit.rules, runnerKit.characters, runnerKit.fx), streamed from z = 3000 down the course, away from a scene's own content. The host spawns one synced holder entity; every peer streams its own track (as runnerKit does in a race) and joiners wait in ready.
results.module holds the before and after numbers of the runnerKit 1.0.6 speed fix. The guide How to measure the speed of my endless runner walks through it in plain words, and Example: speeding up an endless runner with the speed lab goes start to finish (measure, find the cost, fix, measure again, soak). runnerKit 1.0.7 or later warms its pools so a run builds nothing; the soak shows it.
Version history
- 0.1.3: the guides are published as guide assets (0.1.2 still recorded the guide folders without their own entry, so library search did not list them).
- 0.1.2: a still benchmark (two fixed views of normal play) and a camera fly-through, desktop and tablet; every one-player benchmark tagged 1p; the guides are published as guide assets (0.1.1 shipped them as loose files, so library search did not find them).
- 0.1.1: each guide carries a one-line description and plain-words search tags in its .metadata, so a search such as 'how to measure the speed of my physics sandbox game' finds it (0.1.0 shipped them empty). No benchmark changed.
- 0.1.0: first set (quiet, play, stress, worst, 2p and a five-minute memory soak, each on desktop and at tablet settings); results of runnerKit 1.0.5 against 1.0.6; the how-to and example guides.