xiangc@Tumio

@xiangc77.bsky.social

Building FocusFlow 🎬 — Turn complex architecture diagrams into 60fps cinematic walkthroughs. Zero DOM, Canvas 2D & TypedArray indexing, offline-first. Open source craft.

Why we ditched DOM nodes for FocusFlow's spatial canvas: DOM overhead kills 60fps when panning 1,000+ nested cards. Reflows & layout thrashing eat up the frame budget. Instead: Zero-DOM architecture with pure Canvas 2D + contiguous TypedArray spatial indexing. Smooth 60fps everywhere. 🦀

The math behind dampened camera inertia in canvas: critical damping at zeta=0.85 means zero overshoot but instant settle. Was stuck debugging micro-jitter on 144Hz displays until we clamped delta-time to 16.6ms max. Felt like magic when the camera finally floated like a drone. #webdev #canvas