2 ms·
The FS is something like 200 lines (verified in the WebGL debugger). A blitting shader is about 5. If fragment shading load doesn't matter, then of course you d
by pcwalton 11y ago
The FS is something like 200 lines (verified in the WebGL debugger). A blitting shader is about 5. If fragment shading load doesn't matter, then of course you don't need straight textures. But if you want to reduce the load on the GPU and do the efficient thing, without any quality loss, it's better to use atlases.
> We already know that SDF textures are better than straight texture atlases anyway.
Even that depends. SDFs are slow to construct and, because they have a special FS, you have to pay attention to the number of state changes. They do have the advantage (unlike this technique) of having a very simple FS--they can even be used in some fixed function hardware!--making it practical to rerasterize glyphs every frame.
> The technique is obviously practical in some respect (since it renders a pdf faster than anything else I've seen)
That says a lot about how existing PDF renderers are slow and nothing about what is the fastest thing to do on the GPU.