vectojs-performance
Installation
SKILL.md
VectoJS Performance
Use this skill when VectoJS feels slow or when designing workloads that may exceed DOM or Canvas 2D limits.
Diagnosis workflow
- Separate render cost, layout/text cost, application compute, event/hit-test cost, and DOM semantic-sync cost.
- Reproduce with a fixed workload and record entity count, text length, backend, viewport, DPR, hardware, and browser.
- Check whether CPU compute dominates before changing renderer backends.
- Reduce unnecessary work: on-demand rendering, viewport culling, virtualization, prepared text, and dirty-region discipline.
- Choose GPU paths only for matching workloads: WebGL point batching for large points/rects, WebGPU particles for compute-driven simulations.
- Verify with the same benchmark after each change.