3 ms·
Hm, if we're doing GPU rendering for speed, I'd suggest uploading vector glyph data to the GPU and rasterising on the GPU in the pixel shader, rather than using
by Asooka 10y ago
Hm, if we're doing GPU rendering for speed, I'd suggest uploading vector glyph data to the GPU and rasterising on the GPU in the pixel shader, rather than using FreeType. See here: http://wdobbie.com/post/gpu-text-rendering-with-vector-textures/ http://wdobbie.com/post/gpu-text-rendering-with-vector-textu... . The WebGL Demo is really impressive - it lets you zoom in and out on a multi-page PDF at speeds I haven't seen anywhere else.
- jwilm 10y agoThank you for the suggestion! I've had a few comments suggesting similarly. I plan to investigate this as time permits.
- dddddannyyyyy 10y agoThis is not fast. It uses less texture memory but it is not faster than 2 triangles per character. This is why no one really uses this technique in a production system right now.
- pcwalton 10y agoThat will lose by a lot overall. Hit rates on the glyph cache are massive.