Commit Graph
168 Commits
Author SHA1 Message Date
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 1cbfe1bb03 chore: merge main (Library management) into multi-frame editing (M1) 2026-11-11 00:24:09 -07:00
Tanish Manku 3b6f59f65b chore: merge main (GPU binning) into Library management (M2) 2026-11-11 00:11:30 -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 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 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 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 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 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 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 6586de30bd fix(geom): pass the edge matcher by value, for newer clippy (M1) 2026-11-10 19:23:52 -07:00
Tanish Manku 0aa25bf1fa chore: merge main (onion skin) into stroke styles (M7) 2026-11-10 19:22:53 -07:00
Tanish Manku b30b7a4453 test(engine): raw points and symbol editing timings (M1) 2026-11-10 19:08:32 -07:00
Tanish Manku e6f2f9c9f1 perf(engine): onion frames merged layer by layer in one pass and evaluated in parallel (M1)
Stress scene (20 layers x 100 shapes, 2,000 items a frame), onion skin +-5 at
frame 30 (22,000 items), release, 32 threads:

  scene composition   8.3 ms -> 3.0-3.3 ms
    of which layering 3.9 ms -> 0.85 ms (k-way merge instead of append + reorder)
  1080p tiled render  16.2-17.2 ms (off: 7.2-7.9 ms)

Output unchanged: the onion tests and the layering test pass as before.
2026-11-10 19:07:20 -07:00
Tanish Manku 0290891468 feat(stage): edit symbols in place: double-click an instance, Ctrl+E, the edit bar's path back; Library Edit Symbol (M1) 2026-11-10 19:07:18 -07:00
Tanish Manku 43f7bff81e feat(engine): edit a symbol's timeline in place: every command, merge drawing and the raw tools work inside it (M1) 2026-11-10 19:00:39 -07:00
Tanish Manku c62d327ce1 feat(timeline): onion skin markers, tint, fade, outlines, keyframes only, and Edit Multiple Frames (M1) 2026-11-10 18:54:35 -07:00
Tanish Manku f910c67477 perf(render): measure styled strokes (M7)
300 curved strokes, 1280x720, 32 threads, median of 9 (release):
uniform 2.52 ms, taper_both 2.41, bulge 2.63, square+miter 2.18,
dashed 8/4 1.78, dotted 4 1.87, taper_both dashed 2.15.
2026-11-10 18:54:23 -07:00
Tanish Manku 96229c97ba feat(stage): raw points in the editor: Delete, Make Smooth/Corner, adding with the Pen and Subselection, Alt breaks handle pairs, shape tools snap, Ctrl+Shift+/ (M1) 2026-11-10 18:50:08 -07:00
Tanish Manku 9447dbfa0a test(engine): dashed raw strokes keep their style when cut; stroke styles in the command fuzz (M7) 2026-11-10 18:48:05 -07:00
Tanish Manku fc4d20c24c feat(export): SVG, Lottie and HTML canvas write stroke caps, joins, miter limit and dashes (M7) 2026-11-10 18:48:05 -07:00
Tanish Manku 87eb730a10 feat(engine): stroke.set_style, style params on drawing, set_stroke and Ink Bottle; the Eyedropper picks the line style (M7) 2026-11-10 18:46:43 -07:00
Tanish Manku 7382601632 feat(import): SVG and XFL stroke caps, joins, miter limit, dashes and dots (M7) 2026-11-10 18:46:42 -07:00
Tanish Manku 2571a71cda feat(engine): add and delete raw anchors, smooth handle pairs, Make Smooth/Corner on raw points, snapping while drawing (M1) 2026-11-10 18:45:48 -07:00
Tanish Manku a1482962bc feat(render): stroke caps, joins, miter limit and dashes in the model and the CPU oracle (M7) 2026-11-10 18:41:53 -07:00
Tanish Manku 87c1d4e427 chore: merge main (selection across layers) into ActionScript tier 2 (M6) 2026-11-10 17:16:54 -07:00
Tanish Manku 5f6efdbf12 feat(timeline): a click on a layer's name selects its artwork, as in Animate (M1)
layer.select gains select?: the layer becomes active with all of its artwork
at the playhead selected (nothing on a locked or hidden layer). The timeline's
name click passes it. ADR 0044 and the roadmap updated.
2026-11-10 16:47:50 -07:00
Tanish Manku e6e3678462 feat(xfl): report which imported frame scripts run; interactive corpus package with ActionScript that runs (M6) 2026-11-10 16:37:29 -07:00
Tanish Manku 13620efb8f feat(player): run ActionScript in the subset in Test Movie and the HTML export, with mouse listeners (M6) 2026-11-10 16:34:25 -07:00
Tanish Manku e0abdc6485 feat(actions): ActionScript 3.0 subset lexer, parser and lowering to the action IR (M6) 2026-11-10 16:26:10 -07:00
Tanish Manku 93851f3982 perf(engine): timings for a selection on eight layers (M1)
1,440 raw shapes on 8 layers (optimised debug build, selection_timings):
select all 0.06 ms, fix_selection 0.05 ms, move frame 0.32 ms, snapping
move frame 0.44 ms, marquee cut and heal 2.5 ms (461 parts, 202 cut).
2026-11-10 16:04:14 -07:00
Tanish Manku cdbe0b060c test(engine): every selection command with a selection on two layers, marquee cuts per layer, fuzz (M1) 2026-11-10 16:03:14 -07:00