Skip to content

v1.3.0

Choose a tag to compare

@thecosmicskye thecosmicskye released this 12 Nov 14:25
· 2 commits to main since this release
v1.3.0
743c9ae

Kickoffs and respawns follow the game's own rules, and car-car hit reporting loses nothing. CUDA is 0.7% to 1.7% faster than 1.2.0 from 512 arenas up and unchanged below; CPU is 1% to 3% faster on x86 and 5% to 8% faster on Apple silicon.

Arenas RocketGPU CUDA CUDA vs 1.2.0 RocketGPU CPU CPU vs 1.2.0
96 0.66M −0.2% 4.40M +0.9%
256 1.49M +0.2% 4.57M +2.7%
512 2.56M +0.7% 4.72M +3.2%
1,024 4.43M +1.4% 4.68M +3.2%
4,096 10.84M +1.7% 3.86M +3.0%
8,192 15.65M +1.1% 3.69M +1.1%
16,384 18.56M +0.7% 3.75M +1.0%

Arena-ticks/s from bench_cpp --replay; CUDA on an RTX 5090, CPU on a Ryzen 7 9800X3D with 14 threads. The comparisons with 1.2.0 are paired runs on the same machine; the Apple silicon figure is from an M4 Pro at 256 and 1,024 arenas.

Game rules:

  • Kickoff spots: one shuffled order of the five spots per match, each kickoff starting one spot further along it, both teams alike; a team with fewer cars gets the best of the spots a full team would take. A reset with reset_scoreboard starts a match; a reset without it and without a seed is that match's next kickoff. Before, seeded kickoffs were not evenly drawn (a team's first car was on the back-right spot 7% of the time instead of 20%).
  • Demolished cars come back on the first free spot of their team's four, from a random start in the match's order of them; with all four occupied, 192 uu beside one. Before, a car could respawn inside another. Occupied is the game's test, against each car's body mesh bounds: the new CarConfig::body names the body (a row of tools/data/car_body_mesh_bounds.tsv, all 233 of the game's; CarBodyId(name) finds one), set in each preset to its stock body.
  • blue_score and orange_score count a goal once, not once per tick the ball stays in the net.

Fixes (compat Arena):

  • A bump or demolition is reported to the callback for both cars of a mutual hit, and for every hit of a step however many ticks it has. A kickoff reset or a state set no longer leaves an old hit behind or reports one on its first tick.
  • Setting a car's state no longer collects the boost pads between its old and new position.
  • ResetToRandomKickoff(-1) is random, as in RocketSim. In 1.2.0 every arena went through the same fixed sequence of kickoffs, in every run.
  • GetStateV3 / SetStateV3: hasJumped as RocketSim v3 reports it (also set by a double jump or dodge without a jump before it).
  • MSVC (CPU build): the three places 1.2.0 did not compile.

Breaking changes:

  • CarState: the single bump record (bump_event_*) is replaced by bump_event_bumps[7] and bump_event_demos[7], running counts of this car's hits on each other car of its env.
  • EnvState has four new fields (kickoff_match_order, kickoff_match_index, goal_latched, respawn_match_order) and is 44 bytes, up from 36.
  • Seeded kickoffs and respawns give different spots than in 1.2.0, so runs with the same seed differ.
  • Compat respawns differ from RocketSim, which takes one of the four spots at random whatever stands on it.