NATIVE SKIA / WEBGPU · WEBGL · CANVAS
Geometry, without the guesswork.
Exact stroke outlines. Bounded query caches. Observable document output.
01 Original stroke
02 Native filled outline
Loading compiled runtime…—
CONTROL POINTS—
QUERY CACHE HITS—
RETAINED QUERY BYTES—
MEASURE ON THIS DEVICE
Same inputs. Less repeated work.
Alternating, warmed CPU microbenchmarks. These do not measure physical GPU throughput.
| Workload | Uncached / previous | Optimized | Ratio |
|---|---|---|---|
| Path queries | — | — | — |
| Buffer materialization | — | — | — |
PORTABLE PASCALCASE API
const paint = new SKPaint({ Style: "Stroke", StrokeWidth: 12 });
const outline = paint.GetFillPath(path, SKMatrix.Identity);
canvas.DrawPath(outline, fillPaint);
const data = SKData.Create(bytes, bytes.length, releaseCallback);
const subset = data.Subset(0, 256); // Retained view, not another byte copy.
await subset.SaveToAsync(writableStream, { signal });
SKGraphics.SetPathCacheLimit(8 * 1024 * 1024);