Join Nostr
2024-11-11 00:27:43 UTC

Ash K on Nostr: Benchmark of the day. Rasterising a large SVG on the main thread (drawing an img ...

Benchmark of the day. Rasterising a large SVG on the main thread (drawing an img element to canvas), vs in a web worker using canvg to do the same. Canvg takes twice as long, but on slower machines the on-thread method drops frames. Which one do you pick? cc

#WebDev #SVG