Engineering2026-11-20 · 6 min read
How We Render 1,000,000+ Candlesticks Smoothly at 60 FPS
Inside Trading Master’s Float64Array columnar store, LOD mipmap pyramid, and 5-layer HTML5 Canvas 2D + WebGL2 renderer.
Why Standard DOM & Naive Canvas Loops Break at 100k Bars
Allocating hundreds of thousands of JavaScript objects creates GC pauses during zoom gestures. By packing timestamps and OHLCV into contiguous Float64Array buffers, we cut memory footprint and eliminate per-frame allocations.
LOD Decimation Pyramid + WebGL2 Instanced Quads
When zoomed out across 250,000+ bars, each pixel column only needs the bucket open, max high, min low, last close, and summed volume. Our multi-level mipmap reduces viewport queries to under 0.25 ms p95 while isolating crosshair redraws to a dedicated overlay canvas.