Commit Graph
366 Commits
Author SHA1 Message Date
Tanish Manku ebd29c19eb test(shell): a drop on the stage, Enter in the Library and the Convert to Symbol dialog, headless (M2) 2026-11-11 00:54:37 -07:00
Tanish Manku b871683cb3 test(shell): accessibility audit covers Convert to Symbol, mixed rows and Swap Bitmap (M2) 2026-11-11 00:39:12 -07:00
Tanish Manku 42c839b450 docs: ADR 0053 Library drag and drop, Swap Bitmap, Convert to Symbol folders, mixed Properties; roadmap and changelog (M2) 2026-11-11 00:39:04 -07:00
Tanish Manku a4c653b9f6 test(shell): screenshot states for Convert to Symbol, mixed rows and Swap Bitmap (M2) 2026-11-11 00:38:48 -07:00
Tanish Manku b378efbbe3 feat(shell): drag Library items onto the stage, Place at the view centre (Enter), Convert to Symbol dialog with folder and type (M2) 2026-11-11 00:38:48 -07:00
Tanish Manku cb4f1c61cf feat(shell): mixed on every Properties row, Swap Bitmap; Type sets every selected symbol (M2) 2026-11-11 00:38:47 -07:00
Tanish Manku 1e31d8440c feat(engine): Convert to Symbol takes a folder and a type (M2) 2026-11-11 00:38:47 -07:00
Tanish Manku 53c9c57402 feat(engine): library.place takes several items and a sound; element.swap_bitmap (M2) 2026-11-11 00:38:47 -07:00
Tanish Manku 5630b514b9 docs: reserve ADR 0053 for Library and Properties polish (M2) 2026-11-11 00:38:47 -07:00
Tanish Manku 4699c7856e Merge pull request #135 from storytold/m1/multi-frame-editing
feat(onion): Edit Multiple Frames, complete; onion skin inside symbols (M1)
2026-11-11 00:35:33 -07:00
Tanish Manku 1cbfe1bb03 chore: merge main (Library management) into multi-frame editing (M1) 2026-11-11 00:24:09 -07:00
Tanish Manku 93cd5b020b Merge pull request #134 from storytold/m2/library-management
feat(library): folders, rename, duplicate, Swap Symbol, use counts, unused items, sort, search, preview and smoothing (M2)
2026-11-11 00:21:48 -07:00
Tanish Manku 3b6f59f65b chore: merge main (GPU binning) into Library management (M2) 2026-11-11 00:11:30 -07:00
Tanish Manku d778b0695e Merge pull request #121 from storytold/m3/gpu-binning
feat(gpu): tile binning on the GPU, and hairlines for outline mode (M3)
2026-11-11 00:05:04 -07:00
Tanish Manku 2b3aaf79bb docs: ADR 0051 Edit Multiple Frames, complete; onion skin inside symbols (M1) 2026-11-11 00:04:50 -07:00
Tanish Manku 6fe6557634 perf(engine): index Edit Multiple Frames items by hash; timings for ADR 0051 (M1)
Measured (optimised dev build, multi_timings, 24 keyframes, 4,656 items shown):
list 1.4 ms; move 1,200 objects 2.8 ms; rotate 1,200 2.9 ms;
move and merge 288 raw squares 5.6 ms; copy + paste in place 1,200 3.1 ms; delete all 1.8 ms.
2026-11-11 00:04:50 -07:00
Tanish Manku c68c9a0eaf feat(shell): Edit Multiple Frames edits, Free Transform about one pivot, and onion skin inside symbols (M1) 2026-11-11 00:02:29 -07:00
Tanish Manku dfca6610f8 docs: ADR 0050 library management, roadmap and changelog (M2) 2026-11-10 23:56:53 -07:00
Tanish Manku 41b55241fd perf(engine): measure Library use counts and unused items on a large document (M2)
200,000 element keys (stress 100x100x240) plus 1,000 symbols in 50 folders, release build:
use counts 1.5 ms, unused items 1.7 ms, library.items 5.0 ms.
2026-11-10 23:55:55 -07:00
Tanish Manku f30192d0a6 feat(engine): delete, copy, paste, transform, align and re-merge on multiple frames; onion skin inside symbols (M1) 2026-11-10 23:55:24 -07:00
Tanish Manku 7da71f10bb chore: merge main (raw points, symbol editing in place) into GPU binning (M3) 2026-11-10 23:53:44 -07:00
Tanish Manku 8a2ed97981 feat(ui): Library folders, inline rename, drag into folders, sort, search, use counts, unused items, preview and item properties; Swap Symbol in Properties (M2) 2026-11-10 23:51:24 -07:00
Tanish Manku f9004b2e81 docs(adr): reserve ADR 0051 for Edit Multiple Frames, complete (M1) 2026-11-10 23:44:55 -07:00
Tanish Manku e2279409cd feat(engine): Swap Symbol inside an open symbol never nests it in itself (M2) 2026-11-10 23:44:42 -07:00
Tanish Manku 721e1ddffb feat(import): XFL library folders and Allow Smoothing come across; the checker golden is drawn unsmoothed as its file asks (M2) 2026-11-10 23:43:59 -07:00
Tanish Manku 18b07fffe0 feat(render): bitmaps without Allow Smoothing keep hard pixel edges in the oracle, the GPU stage, SVG and HTML (M2) 2026-11-10 23:43:59 -07:00
Tanish Manku e6c0f5a91a feat(engine): library.* folder, rename, move, duplicate, delete and unused commands, element.swap_symbol, smoothing (M2) 2026-11-10 23:43:59 -07:00
Tanish Manku eb1037a6da feat(doc): Library folders, item placement, unique names, use counts and unused items (M2) 2026-11-10 23:43:51 -07:00
Tanish Manku ac9a6ac351 docs(adr): reserve ADR 0050 for library management (M2) 2026-11-10 23:43:51 -07:00
Tanish Manku fc79334eb3 Merge pull request #114 from storytold/m1/raw-points
feat(raw): add and delete raw points, smooth pairs, snapping while drawing, symbols edited in place (M1)
2026-11-10 23:40:40 -07:00
Tanish Manku a6df58e30d fix(gpu): as_chunks_mut for the input layout (newer clippy) (M3) 2026-11-10 23:40:02 -07:00
Tanish Manku c2fd4a8d67 Merge origin/main (motion path pins) into m1/raw-points (M1) 2026-11-10 20:29:18 -07:00
Tanish Manku 340512ef4f docs: ADR 0048 GPU binning and hairlines, performance, roadmap, changelog, attribution (M3) 2026-11-10 20:24:19 -07:00
Tanish Manku 750c90edec fix(gpu): a device whose GPU binning fails its self-test bins on the CPU; Auto bins on the GPU on Vulkan only (M3)
The start-up self-test checks the GPU binning apart: if it comes back wrong only the
binning stays on the CPU (gpu_binning_off says why), instead of the whole GPU stage
switching off; the tests require it to work wherever the GPU stage runs (lavapipe in CI).

On Direct3D 12 the binning passes cost more per stage tile than the CPU binning (onion
+-5 at 1080p in tiles: 9.7 -> 14.4 ms, measured twice), so Auto keeps the CPU's there
and on backends not yet measured; ANICRAFT_GPU_BINNING=gpu still forces it.
2026-11-10 20:23:56 -07:00
Tanish Manku ba34521d0c perf(gpu): hairlines reach only the tiles they can touch, and bound in O(1) (M3)
A hairline segment went into every tile within 2 px of it; 1.25 px is enough (a pixel
centre within its reach is within 1 px of a point of it, plus rounding). The room for
its pieces is its padded box's tiles, row by row only for long segments. Onion outlines
against tinted, GPU stage, best of three: 1080p tiles 10.2 vs 9.5 ms, 4K tiles 15.1 vs
15.4 ms, one texture 7.2 vs 7.1 ms.
2026-11-10 20:23:56 -07:00
Tanish Manku f375849413 perf(gpu): upload only the tile headers when the GPU bins, bin from 32,768 edges, cheap hairline rejects (M3)
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).
2026-11-10 20:23:56 -07:00
Tanish Manku f18cf5bd68 feat(gpu): tile binning on the GPU: count, prefix sum, scatter, tile lists (M3)
The CPU lays out the fills' points, each fill's tile range, each tile row's fills in
drawing order and room for every tile the fills' bounds cover, with an upper bound of the
pieces, so every buffer is sized up front and nothing is read back. bin.wgsl splits the
edges (one invocation per row of tiles of each fill, so no atomics), scan.wgsl places the
pieces, and a pass per tile keeps the fills with pieces or a backdrop there, in order: the
same lists as the CPU binning, which stays the reference and the way for fills in masks
and groups. Binning::Auto bins on the GPU from 4,096 edges; ANICRAFT_GPU_BINNING overrides.
Tests: the GPU's lists against the CPU's, entry by entry and pixel by pixel (stress
frames, outlines, the analytic scenes), and GPU-binned frames against the oracle, on
Vulkan and Direct3D 12.
2026-11-10 20:23:56 -07:00
Tanish Manku 72da28d74c fix(gpu): keep the binning's helpers private (M3) 2026-11-10 20:23:56 -07:00
Tanish Manku 660bdcb0d8 fix(gpu): take the tiles' left-edge steps from the split pieces themselves (M3)
Crossings computed apart from the splitting could disagree with it by a rounding near a
tile corner and count one crossing twice (the backdrop and a step): 543 pixels off by up
to 133/255 on a stress frame. The steps now come from consecutive pieces of a tile row in
different columns, so the backdrop and the steps always describe the same pieces. A test
on stress frames at awkward scales catches it. Also drops leftover timing prints.
2026-11-10 20:23:55 -07:00
Tanish Manku 0fbf8c5d0f feat(render): hairlines for outline mode, and integer tile backdrops in the GPU binning (M3)
Outline mode (an outlined layer, onion skin's outlines) draws hairlines straight from
the flattened path: coverage 1 - the distance to the nearest segment, one edge per
segment where a stroked hairline was four plus a disc at every bend. Exact for axis-
aligned lines, no darkening at overlaps and joins. The GPU stage computes the same.

The binning's per-row float backdrops become one integer per tile plus a piece on the
tile's left edge wherever the outline crosses it (Vello's backdrops and y-edges), which
lets the GPU compute the same lists without float atomics. Parity unchanged.
2026-11-10 20:23:55 -07:00
Tanish Manku 3a12a5f5a5 docs: reserve ADR 0048 for GPU binning and outlines (M3) 2026-11-10 20:23:55 -07:00
Tanish Manku 8503f76c47 Merge pull request #118 from storytold/m2/path-pins
feat(motion): motion path anchors pinned to frames (M2)
2026-11-10 20:21:30 -07:00
Tanish Manku 6435915774 Merge origin/main (stroke styles, onion skin) into m1/raw-points (M1)
Hit testing keeps main's pick_index, picking in the symbol open in place. Onion skin and
Edit Multiple Frames switch off while a symbol is open in place; the multi-frame listing
evaluates the open timeline. A double-click on a Library symbol opens it for editing, as in
Animate. Raw point edits keep a stroke's StrokeStyle (tested).
2026-11-10 20:16:16 -07:00
Tanish Manku 1be002ace7 fix(doc): only pins in force route an X/Y key removal; stale pins go (M2) 2026-11-10 20:12:24 -07:00
Tanish Manku 6e5784d2b6 docs: ADR 0049 motion path pins, ADR 0030/0038 notes, roadmap and changelog (M2) 2026-11-10 19:57:35 -07:00
Tanish Manku 6ba7fb86e2 feat(ui): pinned motion path points on the stage, Motion Editor, timeline and Properties (M2) 2026-11-10 19:55:54 -07:00
Tanish Manku 891464f505 feat(engine): motion.pin_point/unpin_point, auto-key pins the path where the object is put (M2) 2026-11-10 19:49:55 -07:00
Tanish Manku 5c9e4e0f6f feat(doc): motion path anchors pinned to frames, timed leg by leg (M2) 2026-11-10 19:44:37 -07:00
Tanish Manku 272e1f4904 docs(adr): reserve ADR 0049 for motion path anchors pinned to frames (M2) 2026-11-10 19:37:21 -07:00
Tanish Manku d49d31203f Merge pull request #113 from storytold/m7/stroke-styles
feat(stroke): caps, joins, miter limit, dashed and dotted lines (M7)
2026-11-10 19:32:08 -07:00