Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> has a number-of-elements performance ceiling if you're drawing things rather than using images, which feels like it defeats the purpose.

Well you can generate your imagery programmatically and then render it to canvas as a raster image. Canvas is not purely for implementing a web based drawing app.




But you can also embed a raster image in SVG.


The context of the discussion is to leverage SVG's DOM based approach to render on screen elements


Software rasterisation is slow and power-inefficient, and does not scale particularly well with screen size.


when you are faced with between rendering hundreds of thousands of SVG DOM element vs in memory generation of a final raster image, the latter will always be more performant.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: