Files
metal2vulkan/docs
Anees Iqbal b585744208 Boxed draws: the constant's numbers count the three draws the patches frame still fanned out
GEOMETRY_TRIANGLE_WORK's doc (5983bb3e72) split the patches frame's boxed piece
time as if the 3 draws still fanned out held 3/64 of its triangles. By the
lane's layout they are its three largest commands (161,820 and twice 89,184
indices, boxes of 110, 99 and 72 regions), 112,356 of its 301,150 triangles; a
simulation of its patches, map and bucket rule boxes the same 61 at 180, into
14,816,646 vertex-regions against the 15,286,908 counted. With their fan-out
taken out, a boxed vertex-region cost 0.49 / 0.48 ns on the Iris Xe, 0.73 ns on
the Radeon 780M and 0.13 ns on the RTX 3090, so a fanned-out triangle's geometry
stage is worth 31 / 32, 29 and 72 of them, not 26, 25 and 49. The boxed draws
held about 84 vertex-regions a triangle and took about 2.5, 2.8 and 1.1 times
their fan-out, as those ratios predict (2.7, 2.9, 1.2).

The constant stays 24, below the least (29.4): a draw it boxes costs at most
about 0.82 of its fan-out on each of the three. The doc, docs/FAST-PATHS.md's
row and the two tests' docs carry the corrected numbers; tests::rate_mapped_boxed_rule
checks the boxed draws' own average (9285 indices, 27 regions a box), fanned out
at 24 and boxed at 180.

Verified: arithmetic from m3-max-30553/30686/30687's warm pieces; the rule test
and clippy in the job that follows this commit.
2026-11-14 18:02:57 -08:00
..