Log inGet started
World

Kit Speed Lab: Repeatable Benchmarks for Kits and Games

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 with Lab.register (id carForge).
  • 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 (desktop tag, 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, tablet tag, budget tablet60, render scale 0.75: desktop at tablet settings, never a tablet number);
  • at browser settings (.browser, browser tag, 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 run zero 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.
idwhat it measures
carForge.quietthe empty benchmark street, no cars (the floor)
carForge.playthe device's traffic fleet as the whole load (the same load as carForge.fleetBench)
carForge.stressthe fleet beside a 100-car parked street (carForge.streetBench)
carForge.worstthe heaviest moment, maximum traffic: the 100-car street with twice the device's fleet
carForge.stillthe stress street from three fixed views
carForge.flythe stress street with the camera flying down it, over the AI loop and out to the far-traffic ring
carForge.2pthe fleet with a second player in the room; it measures on the player who runs it
carForge.soakfive 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, tag browser): 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.browser and carForge.2p.browser in 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.