3 ms·
But is this wrong? I think the current implementation might have some bugs, but why not create an atlas? Especially for code, most of the characters will be in
by deathanatos 5y ago
But is this wrong?
I think the current implementation might have some bugs, but why not create an atlas? Especially for code, most of the characters will be in ASCII, and if they're not, you can always push what isn't dynamically as needed. Most of the rendering still occurs GPU side.
I suspect the post's code is also cheating on shaping, but even that seems like something you should be able to at least cache on the GPU?
Like the 98% of cases, the GPU, and if for the 2% oddball stuff, the CPU needs to step in, so what?
(Edit: perhaps I'm projecting the "wrong" part onto your comment; there's a lot of "why?" in these comments and the more I think about it, it honestly seems pretty sensible to push graphics to the *G*PU.)
- krona 5y agoI'm just commenting on the extent to which it is 'GPU-rendered', which in this case is apparently no more than a standard text rendering facilities provided by the OS. That's not to say it's not impressive considering how simple it is.