mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-19 17:12:19 +01:00
Mapping the GPU-binned index at creation zeroed and copied its whole room for entries on the CPU; the headers and op headers now go through the queue and the rest starts zeroed on the GPU. 50k shapes at 4K, direct: 50 -> 24 ms (CPU-binned: 121 ms). Auto bins on the GPU from 32,768 edges: forcing it on every 512 px stage tile made the 1,000-shape 4K stage 1.9x slower and the 10k-shape one 1.3x (per-tile pass set-up); with the threshold the tiled stage never loses (10k at 4K 10.5 -> 10.0 ms, 50k 63.6 -> 38.4 ms). A hairline segment whose box is out of reach of a pixel is skipped before the distance (same coverage). gpu_bench compares CPU and Auto binning and checks budgets (--check).