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. 🦀
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.
Swapping regular JS arrays for a single pre-allocated Float32Array for the canvas transform matrix cut down GC pauses by ~40% during rapid zooming. Small change, but at 60fps, avoiding transient allocations between rAF frames is the whole ballgame. #webdev #javascript #canvas #webgl
Stop presenting complex diagrams as static slides. Today I’m open-sourcing FocusFlow: Turn massive system diagrams into 60fps cinematic stories. Direct architecture like a movie camera. 🎬 Demo: focusflow.tumio.site 4K: youtu.be/bxXpkzNV75A #opensource #webdev