Log inGet started
World

Kit Speed Lab: Repeatable Benchmarks for Kits and Games

README.md

speedLabCrossroads

Version 0.1.7. The Kit Speed Lab's benchmark set for Crossroads Tales, the story adventure kit (adventureKit, gluing questKit, dialogueKit, inventoryKit, interactKit, townsfolkKit, moodKit, endingsKit and worldClockKit) and its showcase The Silent Bell of Bellbrook (mossbrook): a riverside village whose bell went silent just before the harvest fair, with seven villagers who talk and remember, eight fair-goers, quests, key items, story beats and two endings (world 01f0f9a0-8b10-4683-9295-619c31f036dd).

It measures what a story game costs: the quiet village at noon with no story on screen, normal play before the fair ("story game lag", "many NPCs slow"), the harvest fair with every villager out and the journal open, the worst case ("villagers lag", "UI makes my game slow 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 story moment: the harvest fair in Bellbrook square at 19:30 on the shared clock, when all seven villagers and eight fair-goers are out and every lamp is alight, with the bell's story beat (finale_ring, its frame and lines) playing, the journal open and a story note every 3 s: the most villagers, effects and UI at once.

Everything is driven through the kits' public API: adventureKit's api (beats.play, beats.isPlaying, beats.stop, openJournal, closeJournal, note), mossbrook's story (its villagers and fair-goers, and the beats it defines) and worldClockKit's clock (setTime, pause, resume, hour). The set runs in a scene that holds the Bellbrook story (Crossroads Tales' main scene, where mossbrook.story.hostLoad places the cast); the camera stations are Bellbrook's own (from the story's beat shots) and re-aim at the square's stage front where the scene has it. The deciding machine holds the shared clock for each moment; beats and notes are local, so every peer shows its own.

Built against Crossroads Tales' published build (playable commit 5fe135af, adventureKit 1.0.6, mossbrook 1.0.6). A review-fix round was still going on in that world when the set was written, so a later release may move anchors or beats: the set looks the cast up by the story's own names and says what it cannot find.

  • speedLabCrossroads.set: the benchmark definitions, registered with Lab.register (id crossroads).
  • speedLabCrossroads.results: Crossroads Tales' numbers: round 6 measured and ranked the worst case; round 6b measured navUiKit 1.3.21 before and after; round 7 measured the sun shadow caster cutoff (published 32f8391a against 6414882d, desktop and browser).
  • Guide: How to measure how fast a story game with many villagers runs.
  • Example guide: Example: speeding up Bellbrook's harvest fair with the speed lab, start to finish.

Run the whole set from the lab's board, or in play: zero speedLab run speedLabCrossroads.set (quiet, play, stress, worst, still, fly, 2p, soak, tablet pick a part).

Teardown stops the beat, closes the journal and gives the clock back its hour and its pace.

Version history

0.1.7

  • The lab takes mossbrook 1.0.18 (adventureKit 1.0.23, moodKit 1.0.10, questKit 1.0.39, navUiKit 1.3.30), so the set measures the released Bellbrook again. The lab could not update its old mossbrook in place (its nested questKit and navUiKit copies named older releases), so mossbrook was uninstalled and installed fresh. No benchmark changed; no new numbers this version.

0.1.6

(Round 9.)

  • Results: questKit 1.0.35 (questKit world PR #8) removes the last save line Crossroads logged at load (~saveKit.save names no package: 1 -> 0 on fresh native and web clients); Crossroads takes it by install with adventureKit 1.0.13 and mossbrook 1.0.8 (main 53974918). Like-for-like worst moment on desktop and in the browser, a fresh client per version, two runs each: browser GPU about 77 -> 26 to 34 ms, wall and engine CPU the same; the browser frame is engine CPU bound and no Luau row is near 20% of it. Before and after pictures from one explicit camera are in Crossroads media/speedround9. The mossbrook dependency stays the version the lab holds (1.0.6). The set itself is unchanged.

0.1.5

(Round 7. The number 0.1.4 was taken on the lab's round 7 branch by an earlier draft of this set, so this release is 0.1.5.)

  • Results: round 7 in Crossroads Tales. Small and far props stop casting sun shadows (the world's .world_settings: shadow_caster_min_radius_px = 3, shadow_caster_max_distance = 60, released with mossbrook 1.0.7 at 6414882d): GPU per frame about a third lower in the harvest fair on desktop and in the browser, same look. Same-session checks show round 6b's slower whole frame was machine load, not navUiKit 1.3.21. endingsKit 1.0.6 removes the 'saveKit.save not found' lines on load. The guides say how to tell machine load from a real slowdown. The set itself is unchanged.

0.1.3

  • Results: round 6b, navUiKit 1.3.21 in Crossroads Tales (8962fdee): NavHud about half in the harvest fair (same session), before and after desktop runs, browser runs (too noisy to claim) and the navKit planning test that was not released. Guides say how to time one component on a busy machine. The set itself is unchanged.

0.1.2

  • Results: the first measured numbers (round 6, desktop and tablet settings) and the ranking of the worst case: GPU bound by the sun's shadow passes, then navKit's path planning for the villagers, navUiKit's HUD, moodKit and townsfolkKit. The set itself is unchanged.

0.1.1

  • the guides, the set and the results are published as their own assets (0.1.0 recorded those folders without their own entry, so they arrived as loose files and library search did not list the guides).

0.1.0

  • First set: quiet, play, stress, worst (the harvest fair with a story beat, the journal and notes on screen), still, fly, 2p and a five-minute memory soak, each for desktop and tablet; holds the shared clock and plays the story's own beats; the how-to and example guides; results empty until measured.