News for hackers. Stuff that matters.
Re:I still use Flash in 2022 by detritus on Wednesday December 21, 2022 @03:53PM (#34086241)
> "GPUs have literally no support for rendering anything other than pixels on triangles and getting them to efficiently draw Bezier curves and fills is an active area of research"

Well fuck me, I had no idea. I figured that 'simple 2D vectors' would be beyond piss-easy for modern GPUs. I'd never considered that it wasn't the actual math space that was accelerated, rather the fast memory mapping of everything on presumably comparatively simple geometries. You've just turned my view of the world upside down :(

Re:I still use Flash in 2022 by ChuckMcM on Wednesday December 21, 2022 @04:04PM (#34086382)
Yeah, this is something that many many people assume (vectors are "easy" on GPUs) and then are amazed (like I was!) that they aren't even in the function set. My thought was that if you were "accelerating" desktops you'd really want vectors right? But no.
Re:I still use Flash in 2022 by jcelerier on Wednesday December 21, 2022 @04:20PM (#34086554)
> they aren't even in the function set.

they are, but on nvidia only... https://developer.nvidia.com/gpu-accelerated-path-rendering

Re:I still use Flash in 2022 by ChuckMcM on Wednesday December 21, 2022 @06:27PM (#34087754)
Re:I still use Flash in 2022 by int_19h on Wednesday December 21, 2022 @07:30PM (#34088223)
The interesting thing is that graphics cards in the 90s - which were "desktop accelerators" past the low end - specifically supported accelerated 2D primitives, including Bezier curves for the more powerful ones. It was all gradually dropped as cards focused on 3D games specifically.
Re:I still use Flash in 2022 by DonHopkins on Wednesday December 21, 2022 @06:50PM (#34087950)
Rendering vectors on the GPU is possible, just quite tricky.

But signed distance fields work well and easily on GPUs.

Here's a recent article and discussion about it:

Vector graphics on GPU (gasiulis.name)

235 points by mpweiher 4 months ago | hide | past | favorite | 95 comments

https://news.ycombinator.com/item?id=32384016

https://gasiulis.name/vector-graphics-on-gpu/