SVG, Canvas, and WebGL: The Power, the Beauty, and the Cost
summary
Compares SVG, Canvas 2D, and WebGL with concrete demos and numbers: an SVG benchmark drops to single-digit FPS at 10,000 circles, while WebGL sustains ~60 FPS at 10,000 using Pixi; shows the Pixi bunnymark and a custom benchmark of tweened circles. Explains a Pixi implementation: Pixi sprite map plus a game loop for animated updates, and a layered architecture combining SVG axes with WebGL point rendering and HTML tooltips. Notes tradeoffs, debugging limits, and mentions WebGPU as the next-generation option.
AI-written summary · about
chapters (14)
- 0:00Introduction to the topic
- 1:03The power of visuals
- 2:30Engineering data workflows
- 4:23Working with SVG
- 6:02Benchmarking renderers
- 7:57Real-world SVG examples
- 8:50Building charts with D3
- 10:55Canvas 2D overview
- 11:51WebGL performance
- 13:30Benchmarking with Pixi.js
- 16:02Advanced visual examples
- 18:00Implementing WebGL with Pixi
- 19:41Hybrid architecture
- 20:59Q&A and closing
related talks
33mVisualizations using SVG, Canvas, and WebGL in Vue
35mVisualizations using SVG, Canvas, and WebGL in Vue
43mWebGL 2D Rendering with PixiJS
39mLife of a pixel: A visual explanation of rendering performance
43mVisualizations using SVG, Canvas, and WebGL in Vue
58mRendering performance from the ground up
37mTricky JS and WebGL practices to achieve the best performance on mobile
38mSVG can do that?!
