canvas
https://github.com/aquaticcalf/samcan.git
samcan is an animation runtime for the web, my attempt at resurrecting Flash
npm
npm install samcan
bun
bun add samcan
yarn
yarn add samcan
pnpm
pnpm add samcan
import { AnimationRuntime } from "samcan"
| x | code | comments | empty | total |
|---|---|---|---|---|
| core | 8602 | 3758 | 1714 | 14074 |
| test | 6796 | 275 | 1688 | 8759 |
| total | 15398 | 4033 | 3402 | 22833 |
timeline
| name | ops/s | latency avg (ns) | samples |
|---|---|---|---|
| timeline-eval-10-tracks | 1225841 ยฑ 0.06% | 915.52 ยฑ 0.20% | 546136 |
| timeline-eval-100-tracks | 124915 ยฑ 0.20% | 8806.5 ยฑ 0.51% | 56777 |
| timeline-eval-500-tracks | 26831 ยฑ 0.40% | 40710 ยฑ 0.84% | 12283 |
scene graph
| name | ops/s | latency avg (ns) | samples |
|---|---|---|---|
| scene-world-transform-1k-nodes | 1002282 ยฑ 0.09% | 1218.6 ยฑ 1.08% | 410298 |
| scene-world-transform-5k-nodes | 1011793 ยฑ 0.08% | 1172.1 ยฑ 0.96% | 426584 |
built with ![]()