Log inGet started
World

Kit Speed Lab: Repeatable Benchmarks for Kits and Games

README.md

speedLabHoldTheLine.set

Registers the Hold the Line benchmark set with the Kit Speed Lab (Lab.register, id holdTheLine). Sixteen benchKit definitions, each a desktop variant (tag desktop, budget desktop60, render scale 1) and a tablet variant (tag tablet, budget tablet60, render scale 0.75; desktop at tablet settings):

  • holdTheLine.quiet: the map before the first game, the match held: forest, road, HUD, wave preview and build bar, no towers, no enemies.
  • holdTheLine.play: normal play, wave 5 (Wings) with six towers of all six kinds shooting and killing.
  • holdTheLine.stress: wave 9 (The Horde) against twelve tier-2 towers, from the game camera and low over the road.
  • holdTheLine.worst: Hold the Line's worst moment, wave 10 (The Warlord) with eighteen tier-3 towers of all six kinds firing; the Warlord stays on the road and the wave is kept at its full size.
  • holdTheLine.still: normal play from three fixed views (game camera, entrance, goal); holdTheLine.fly: normal play with a camera fly-through.
  • holdTheLine.2p: normal play with a second player in the room; it measures on the player who runs it.
  • holdTheLine.soak: five minutes of normal play with memory sampled (capture memory, one repeat, Lab.SOAK_SECONDS).

It runs in a scene holding a towerDefenseKit game (TDGame and TDMatch, as TD.build places them): Hold the Line's forest map or any map built with the kit; the camera stations are aimed from the game's own map and camera. A wave benchmark plays the real game up to its wave on the deciding machine: restart, every earlier wave at eight times speed (each enemy killed through SecondWind, so the match counts the waves and the spawner moves on), the towers built and upgraded through the game's own requests (gold credited to the team bank), the wave called, then held: once the wave's own spawns have walked in, more of its kinds top the field up to the wave's size, the boss is kept on the road in wave 10, enemies at the goal leave as "cleared" and the lives stay full. A joining player reads the synced match and waits in ready. Teardown releases the hold and starts a fresh game.