4 ms·
Of course SVG is slower than Canvas. SVG is fundamentally much more powerful. Canvas is just a pixel buffer. You know what's even faster than Canvas? JPEG. Of
by xyzzy_plugh 3y ago
Of course SVG is slower than Canvas. SVG is fundamentally much more powerful. Canvas is just a pixel buffer. You know what's even faster than Canvas? JPEG.
Of course these tools have different use cases. Handling scaling events and interactivity with Canvas is far, far more laborious.
The great thing about SVG (and to a lesser extent JPEGs) is that you can produce them anywhere, not just in a browser with a JavaScript VM.
- XCSme 3y ago> You know what's even faster than Canvas? JPEG Is that true? Isn't canvas a bitmap whereas JPEG requires decoding?
- jancsika 3y agoWhat's the fastest way to deliver the bitmap to the canvas?
- XCSme 3y agoHardcode the RGB array?
- colejohnson66 3y agoSo, BMP?