3 ms·
> So I tried something unconventional: draw each character once, cache it as a texture, and then just copy those textures around. That’s more like the most con
by Sharlin 1y ago
> So I tried something unconventional: draw each character once, cache it as a texture, and then just copy those textures around.
That’s more like the most conventional way to draw characters ever. Nobody goes around rendering filled Béziers any more than absolutely necessary. And conventionally conventionally, fonts were bitmaps in the first place!
- taeric 1y agoYeah, I confess I would have assumed that this was more common than otherwise. Makes me curious how much of computing is losing perceived speed because we have moved to calculating everything on the fly? Easy example is website layout. Yes, some dynamic sites need to calculate a ton on the fly. Most sites, though, probably don't need to reflow everything nearly as often as they do. And fitting everything into the mechanism that is the document flow remains baffling to me.
- mr_toad 1y ago> And conventionally conventionally, fonts were bitmaps in the first place! Bitmaps in ROM on early machines. https://en.wikipedia.org/wiki/Motorola_6845 https://en.wikipedia.org/wiki/Motorola_6845
- estimator7292 1y agoBitmaps in diode arrays on even earlier machines