Skip to content

line-field-13

Choose a tag to compare

@lamb2k lamb2k released this 22 Nov 20:35
· 25 commits to main since this release
4e6408f

The line field's contact phase does less work per step, with the same results as line-field-12, bit for bit.

  • Change: the order's rows are read once into a packed array; a step with no two neighbouring vehicles within the contact reach has no pair in reach and its passes do nothing. Otherwise the first pass lists the pairs (up to 192), later passes skip a pair that did not overlap sideways until a push has moved one of its two vehicles, and a pair is rejected on the signed lateral difference before the push code.
  • API: none changed. No new entry point or parameter.
  • Cost: the step's stack grows by about 4.5 KB (per-vehicle arrays for 255 vehicles, the packed rows and a 192-pair list).
  • Objects: no libc memcpy, memset or memmove in the SH-2 objects; compiled with -Wall -Wextra -Werror.
  • Evidence: HOST: line_field_exact 26,143,380 checks under GCC, Clang and ASan/UBSan, with two new pinned checks recorded from the line-field-12 source and a differential harness (4 x 20000 scenes, old and new equal); 30 of 31 mutation controls caught, the other equivalent. MODELLED (flat-RAM Yabause model, no caches): contact phase cycles 32,387 to 30,056 (loose field), 67,065 to 51,891, 84,188 to 61,165 and 97,038 to 68,705 (pile); hash chains identical. No console run. CI on the merged head passes (host, SH-2 cross compile, math lab, docs). Validation record.
  • Merge: PR #79, merge 4e6408f.
  • Guide: saturn/LINE_FOLLOWER.md.