← Back to context

Comment by xyzsparetimexyz

1 hour ago

I'm pretty sure that there are parallel algorithms for triangulating vector graphics that can be run on a gpu. But in general handling vector graphics is simply overkill. What are we actually using them for on the web? Rounded corners? We don't those! Let's use a paradigm that's more GPU friendly. Text can all be cached.

>I'm pretty sure that there are parallel algorithms for triangulating vector graphics that can be run on a gpu

They are. They're not particularly more performant that what we do today. It all involves tesselation on the CPU, or dropping entire feature sets.

>But in general handling vector graphics is simply overkill.

You don't get to decide that.

>Rounded corners? We don't those! Let's use a paradigm that's more GPU friendly.

That ship has sailed. The text input I'm typing this comment in has slightly rounded corners. The text it's containing is vector graphics with rounded corners everywhere, where the best renderer solution at the moment is Slug, with SDFs being a distant second.

>Text can all be cached.

sure, if you drop ligatures, only care about latin alphabet languages, accept having to rerender everything the moment I zoom the page to 110% or 125%