Kit Speed Lab: Repeatable Benchmarks for Kits and Games
README.md
speedLabSpawner
Version 0.1.10.
The speedLab benchmark set for spawnerKit: a range of repeatable benchmarks built from spawnerKit's own API, so they run in any world that installs it.
zero speedLab run speedLabSpawner.set every benchmark
zero speedLab run speedLabSpawner.set stress the heavy load only
zero speedLab run speedLabSpawner.set 2p the two-player ones (run this on the player who joined)
What it measures
- quiet:
small/medium/bigparked enemies (20 / 80 / 160), all asleep in the pool, nothing active. This is exactly the cost spawnerKit 1.2.6 fixed: before it, every one of these kept its Enemy script running on a player who joined the room; after it, none do. - play: a steady field of enemies in play, cycling through the pool as they are despawned and respawned, the way a real wave does.
- stress: the
bigcount, both parked and cycling in play, at once. - still / fly: fixed views and a camera pass over the field, so GPU and draw cost are read from a still frame and a moving one.
- 1p / 2p: the quiet and stress benchmarks also run as
*2p: the host builds the field, the second player (the one who just joined the room) runs the benchmark, which is where the fix matters. Start a second player in the room first, then run the2ptag from the joining player's own console.
See results.module for the measured before and after numbers of the spawnerKit speed release.
Guides
- How to measure whether enemy waves and spawning slow my game: the method with this set.
- Example: making many pooled enemies cheap for every player with the speed lab: start to finish with the real numbers (spawnerKit 1.2.6: pooled enemies asleep on every peer, 31 of 57 awake on a joiner -> 0 of 50).
Version history
- 0.1.10: the board shows the round 15 placement table: desktop and browser, before (spawnerKit 1.2.12 path code) and after (1.2.13), two runs each, plus the in-game Hold the Line rows. The headline states the result: about 99% off per spawn.
- 0.1.9: carries the round 15 placement results in
results15/(before: spawnerKit 1.2.7, whose path code is 1.2.12's, on desktop and in a browser; after: spawnerKit 1.2.13). 0.1.8 had gone out with the benchmark alone, so these rows ship under a new number. - 0.1.8:
speedLabSpawner.placementtimes spawnerKit's path placement (solve("path"), once per enemy spawned on a path) on S-shaped roads like Hold the Line's: light (8 points), typical (20), stress (40) and two players. Results for round 15 (spawnerKit 1.2.12 → 1.2.13) are inresults15/. - 0.1.7: the example guide names the set version it belongs to (it said 0.1.5); numbers and steps unchanged.
- 0.1.6: an example guide (making many pooled enemies cheap for every player with the speed lab), found by search.
- 0.1.5: a worst case (160 parked and 160 active enemies churned every 0.1 s), a five-minute memory soak, tablet twins of every benchmark, still, fly and desktop tags; guide: How to measure whether enemy waves and spawning slow my game.
- 0.1.4: enemy counts are small 20, medium 80 and big 160 (parked plus active) in every benchmark, as the round asked; before they were 20 / 60 / 150.
- 0.1.3: tablet note: rows named "desktop at tablet settings" are a desktop at render scale 0.75.