Skip to content

v1.4.0

Choose a tag to compare

@thecosmicskye thecosmicskye released this 17 Nov 17:57
· 1 commit to main since this release
v1.4.0
2359b6b

The car state reports the game's own values, RLBot v5's values come bit for bit from a new header, and six more of the game's rules are in. CUDA is 0.1% to 1.7% faster than 1.3.0; CPU is level with it.

Arenas RocketGPU CUDA CUDA vs 1.3.0 RocketGPU CPU CPU vs 1.3.0
96 0.67M +0.1% 4.35M +0.5%
256 1.52M +0.3% 4.53M +0.6%
512 2.61M +0.5% 4.66M +0.3%
1,024 4.47M +0.5% 4.64M +0.1%
4,096 11.02M +0.3% 3.78M +0.5%
8,192 16.10M +1.7% 3.69M +0.2%
16,384 19.04M +0.8% 3.74M +0.6%

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.3.0 are paired runs on the same machine; the CPU differences are inside their noise (about 1%).

Car state:

  • CarState holds the game's own values after each tick: the body's vel and ang_vel before the speed caps, the game's is_supersonic flag, its jump flags, and its boost amount (boost_amount, 0 to 1; boost is that times 100). In 1.3.0 these fields held RLBot's values.
  • New rocketgpu/rlbotv5.h gives what RLBot v5 sends, bit for bit: physics of cars and ball, is_supersonic, the jump and dodge flags and timers, demolished_timeout, touch time, seconds_elapsed and boost (RlbotV5Boost, one per car, updated after every tick). Python: rlbotv5_* methods on the states; with the RocketSim-style arena, car.get_native_state() returns the state they take.
  • The RocketSim-style get_state / set_state and get_state_v3 / set_state_v3 return what they did in 1.3.0, with two exceptions: boost differs in its last digits (it is counted in the game's units), and get_state_v3 keeps jump_hold_broken set after the jump ends, as v3 does.

Game rules (results change):

  • A demolished car is back 361 ticks after the demolition, in the RocketSim-style arena too. In 1.3.0 it was back after 360. It is in the air until its wheels touch, so a jump press on its first tick is a dodge or a double jump.
  • A jump press on the tick the game clears a ground jump's flag does nothing.
  • A jump press that starts the flip-over of a car on its roof does nothing else. In 1.3.0 the car also double jumped.
  • A car that dodges while crossing 2200 uu/s turns supersonic on the game's tick. In 1.3.0 it could be one tick late.
  • Boost is counted as the game counts it (an amount from 0 to 1), so it runs out on the game's tick.
  • world_contact.has_contact is read from the contact points left after the tick, as the game reads it. In 1.3.0 a point that was added and dropped again within one tick also set it, and a car with no wheel on the ground and the throttle down got the auto-roll torque on that tick.

New:

  • Arena::ResetToKickoff(game_countdown), Python reset_to_kickoff: the match's next kickoff, as the game sets it up after a goal. ResetToRandomKickoff does what it did.

Accuracy, on the full-state suite: every body-tick of its 144 recordings is still bit-exact, on CPU and CUDA. Three new recordings of a bot acting on every tick are exact too: 967,122 of 967,122 body-ticks (1.3.0: 99.96%). The suite now also scores the state values: CarState against the game's memory and rlbotv5.h against RLBot's packets, each equal on all 11.8 million car-ticks, and kickoff spots and countdowns against the game's (4,954 of 4,954 cars on the right spot). One case is not scored: the boost of two cars after a pad came back under both (224 car-ticks). The game gives such a pad to the car its collision octree lists first, which the recordings do not hold; RocketGPU gives it to the later car in its update order.