4 ms·
Yes, they're essentially optimizing for separate things: https://mattdesl.svbtle.com/drawing-lines-is-hard https://mattdesl.svbtle.com/drawing-lines-is-hard SV
by krebby 3y ago
Yes, they're essentially optimizing for separate things: https://mattdesl.svbtle.com/drawing-lines-is-hard https://mattdesl.svbtle.com/drawing-lines-is-hard
SVG naturally spends a lot of time and resources tessellating paths into triangle strips, which requires mitering and sorting and other not easily parallelizable (read: slow for GPU) algorithms.
- andai 3y agoThis is great! I'm currently learning 2D graphics from scratch (making vector art software), can anyone recommend any related resources? I found this interview (one relevant bit at 29:55) very interesting. Shawn McGrath did the graphics code for the game N++ which is very vectory, so he found efficient ways to render it on a GPU. https://youtu.be/cfyWvJdsDRI?t=1795 https://youtu.be/cfyWvJdsDRI?t=1795