J
jeremy
17 minutes
SVG creates a DOM node per element and collapses beyond a few thousand marks; canvas draws into a single raster bitmap, and WebGL pushes vertex buffers to the GPU, sustaining hundreds of thousands of marks at interactive framerates. The price of the raster path is losing per-element DOM events, so hit-testing must be reimplemented (e.g., picking buffers).