@graphty/graphty-element / index / ACCELERATION_MIN_NODES_DEFAULT
Variable: ACCELERATION_MIN_NODES_DEFAULT ​
constACCELERATION_MIN_NODES_DEFAULT:0=0
Defined in: graphty-element/src/acceleration/types.ts:396
The default for ACCELERATION_MIN_NODES_KEY: use the accelerator whenever one is attached.
Raise it when a graph is small enough that uploading it costs more than computing it. There is no defensible non-zero default, because the crossover has to be measured on the machine the graph is drawn on -- and this zero is a measurement, not a guess. On the dev box (RTX 4070 SUPER, headless Chromium, 2026-09-22) the accelerated layout's frame time was at or below the CPU simulation's at every size measured, starting with the smallest: 50.0 against 50.0 ms at 500 nodes, 116.7 against 116.7 at 1,000 and 183.3 against 216.6 at 2,000, three runs of sixty working frames per arm, all at average degree 10. A fourth size, 5,000 nodes, read 466.6 against 566.7 -- but from ONE run of five frames, so read it as indicative and not as what the default rests on. The crossover is therefore below the smallest graph worth accelerating, and the default stays 0.
scripts/measure-min-nodes.mjs is the measurement, protocol in its header; the table and what it does not cover are in section 3 of graphty-element/docs/decisions/G6.md IN THE REPOSITORY, which is not part of the published documentation site.