Kit Speed Lab: Repeatable Benchmarks for Kits and Games
- ..
- .metadata163 B
- README.md5.4 KB
- guides
- package.yaml1.1 KB
- results.module
- set.module
README.md
speedLabCarForge
Version 0.1.2. The Kit Speed Lab's benchmark set for Car Forge: Procedural Car Generator and Traffic Fleet Kit (world fd48196f-8859-45bc-a078-d3897142be2a), the procedural car kit built on vehiclesKit. It measures how much a street full of generated traffic costs, the same way every time, with benchKit: frame time, CPU and graphics card time, scripts, memory.
It builds Car Forge's own benchmark street (carForge.streetBench: parked rows, AI drivers on a loop, far traffic on a ring, 420 m west of the origin) from fixed seeds, so it runs wherever the carForge kit is installed: in this lab, and in the Car Forge world itself, where the showcase's own groups are set aside while it measures. Press Run on its card on the speed lab's board, or in play:
zero speedLab run carForge
zero speedLab run carForge worst
zero speedLab run carForge soak
zero speedLab run carForge browser
speedLabCarForge.set: the 24 benchmark definitions, registered withLab.register(idcarForge).speedLabCarForge.results: the round 14 numbers, desktop and browser.- Guide: How to measure how fast Car Forge's traffic runs (
guides/how-to-measure-how-fast-car-forge-s-traffic-runs.guide). - Example guide: Example: getting Car Forge's traffic to load clean and measuring it with the speed lab, start to finish (
guides/example-getting-car-forge-s-traffic-to-load-clean-and-measuring-it-with-the-speed-lab.guide).
Benchmarks
Each scenario comes three ways:
- desktop (
desktoptag, budget desktop60, render scale 1), with the fleet of the device that runs it (carForge.fleet's budget: 60 cars with 4 AI drivers on a desktop, 30 with 2 on a tablet or phone); - at tablet settings (
.tablet,tablettag, budget tablet60, render scale 0.75: desktop at tablet settings, never a tablet number); - at browser settings (
.browser,browsertag, budget web60, render scale 1, the browser fleet of 60 cars with 3 AI drivers: what a desktop browser player gets from graphicsPresets and carForge.fleet). Meant to be run in a browser client: a web sub-client (zero client create --id web --wait true --target web,--world <guid>to run in a game's world) or the published web player; in that client enter play and runzero speedLab run carForge browser, or one by name (zero speedLab run carForge carForge.play.browser). Run in a native engine it is desktop at browser settings, never a browser number.
| id | what it measures |
|---|---|
carForge.quiet | the empty benchmark street, no cars (the floor) |
carForge.play | the device's traffic fleet as the whole load (the same load as carForge.fleetBench) |
carForge.stress | the fleet beside a 100-car parked street (carForge.streetBench) |
carForge.worst | the heaviest moment, maximum traffic: the 100-car street with twice the device's fleet |
carForge.still | the stress street from three fixed views |
carForge.fly | the stress street with the camera flying down it, over the AI loop and out to the far-traffic ring |
carForge.2p | the fleet with a second player in the room; it measures on the player who runs it |
carForge.soak | five minutes of the stress street with the fleet driving, memory sampled every 100 ms |
results.module holds the round 14 numbers: Car Forge 0.3.7 (published; about 42 load errors from the engine's removed zui UI library reached through controlsKit 1.4.7, and strict play refused by vehiclesKit 1.1.9's hit.position) against 0.3.8 (vehiclesKit 1.2.9, controlsKit 1.4.15, driveCams 1.1.4, benchKit 2.0.3, shadow-proxy guid fix), carForge.fleetBench twice on desktop (native sub-client) and twice in a browser (web sub-client); the zero-error state of the current release 0.3.10; and carForge.play.browser and carForge.2p.browser on 0.3.10, run once each in a web sub-client in the Car Forge world. No real tablet was reachable: tablet rows are desktop at tablet settings.
Install
The set needs the speedLab package and the carForge kit (its package.yaml names both). In the lab, carForge is installed from the Car Forge world so carForge.streetBench and carForge.fleet resolve. In the lab's web client carForge's ~vehiclesKit still reaches an older vehiclesKit 1.2.9 copy under deps/058d40bf/versions/ (cars fail with "no vehicle preset 'carforge:...'"), so the browser rows were measured inside the Car Forge world.
Version history
0.1.2
- A browser variant of every benchmark (
carForge.quiet.browser...carForge.soak.browser, tagbrowser): budget web60, render scale 1, the browser fleet (60 cars, 3 AI drivers), a note that it is meant for a browser client. 24 benchmarks. Desktop and tablet benchmarks unchanged. - Browser rows of Car Forge 0.3.10:
carForge.play.browserandcarForge.2p.browserin a web sub-client; a row for 0.3.10's zero load errors. - Guides: how to measure how fast Car Forge's traffic runs, and the round 14 worked example.
0.1.1
- States Car Forge 0.3.10 (vehiclesKit 1.2.11): Car Forge now opens fresh and plays strict with zero errors (the old engine terrain and fog shaders its install records carried are gone). Benchmarks and rows unchanged; the round 14 rows were measured on 0.3.8.
0.1.0
- First set: quiet, play, stress, worst (max traffic), still, fly, 2p and a five-minute soak, each on desktop and at tablet settings; round 14 results of Car Forge 0.3.7 against 0.3.8.