Skip to content

feat(pcb): each run laid round the corners beside it as a run's cleanup ends where a host asks for it (RouteOptions::round_corners), and a net given with every end short of its pads taken back by a last run: tinytapeout-demo's track outside the pads 0.66 % less over sixteen orders in three sets (15 better, 1 worse) with 1.1 vias fewer, lumenpnp-mobo's 0.77 % less and buspirate5-rev10's 0.65 % less in four of four - #109

Merged
MagicalTux merged 1 commit into
masterfrom
round-27
Nov 26, 2026

Conversation

@MagicalTux

Copy link
Copy Markdown
Member

What each router does to its routes after the rounds of cadlab's router, measured step by step in both at the same places (docs/benchmarks.md, the new section): the pass on this crate's lattice is the only step that adds track, and what it adds closes connections; cadlab's router has one step there that a run after these rounds did not, each stretch laid round the corners of the clearance of what is beside it, off the grid.

  • RouteOptions::round_corners (default false): a run with a deadline or a budget that looks for no shorter ways ends its cleanup by laying each run of tracks round the corners beside it, as a run for shorter ways does, with no way nearer a pad of another net in the room of a spoke than the run was and none with more of it outside the pads of its net. Not for pairs, lengths and stubs to planes; not in a run that gives the rounds of cadlab's router up.
  • A last run (leave_given) looks for the ends of a net's tracks short of their pads' centres on what it was given, before it drops the copper with no terminal in it: a route between two such ends was all of it dropped and the net left as it was (37 nets of 134 on tinytapeout-demo). Such a net has the run's search for fewer vias.

Measured through cadlab (its decision D149), this beside 0.0.51 in the same minutes:

  • tinytapeout-demo, sixteen orders, three sets: no connection open in 48 runs of either; track outside the pads 0.66 to 0.67 % less (15 orders better, 1 worse), vias 271.1 in the mean for 272.2, 20 pads short of two spokes a set for 23, 47 s in the median for 45 to 46.
  • lumenpnp-mobo 0.77 % less and 4.25 vias fewer, buspirate5-rev10 0.65 % less and 2.75 vias fewer, each in four orders of four; the boards with this crate's own rounds 0 to 0.5 % less.
  • At budgets of nodes 569 and 164 connections open as before; 16 of 41 runs the same board, 24 with less track and one with 0.3 mm more.
  • Beside cadlab's router: 35 cells better, 31 equal and 6 worse of 72 (0.0.51 in the same minutes: 34, 30, 1 overlapping and 7); tinytapeout-demo's track outside the pads is equal (+1.7 % for +2.9 %).

Checks on this tree: fmt, clippy with all features and with pcb alone, rustdoc with warnings denied, the whole test suite.

🤖 Generated with Claude Code

…up ends where a host asks for it (`RouteOptions::round_corners`), and a net given with every end short of its pads taken back by a last run: tinytapeout-demo's track outside the pads 0.66 % less over sixteen orders in three sets (15 better, 1 worse) with 1.1 vias fewer, lumenpnp-mobo's 0.77 % less and buspirate5-rev10's 0.65 % less in four of four

What each router does to its routes after the rounds of cadlab's router, measured step by
step in both at the same places (docs/benchmarks.md): the pass on this crate's lattice is
the only step that adds track, and what it adds closes connections; cadlab's router has one
step there that a run after these rounds did not, each stretch laid round the corners of
the clearance of what is beside it, off the grid.

- `RouteOptions::round_corners`: a run with a deadline or a budget that looks for no shorter
  ways ends its cleanup by `round_corners` on every net, as a run for shorter ways does,
  with no way nearer a pad of another net in the room of a spoke than the run was and none
  with more of it outside the pads of its net. Not for pairs, lengths and stubs to planes;
  not in a run that gives the rounds of cadlab's router up. Default false.
- A last run (`leave_given`) looks for the ends of a net's tracks short of their pads'
  centres on what it was given, before it drops the copper with no terminal in it: a route
  between two such ends was all of it dropped and the net left as it was (37 nets of 134
  on tinytapeout-demo). Such a net has the run's search for fewer vias.

At budgets of nodes 569 and 164 connections open as before; 16 of 41 runs the same board,
24 with less track and one with 0.3 mm more. Beside cadlab's router 35 cells better, 31
equal and 6 worse of 72 (0.0.51 in the same minutes: 34, 30, 1 overlapping and 7).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@MagicalTux
MagicalTux merged commit 6dae19a into master Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant