libera/#clim - IRC Chatlog
Search
13:42:46
cmack
congrats! did you use any special profiling tools beyond the built in profiler output?
13:44:04
jackdaniel
and while I had the memory leak I've meantiooned the other day, I was monitoring htop
13:46:32
jackdaniel
and there's also the fact that the previous (slow) method was precise to each pixel, while now when we scale text we may notice some extra blur; but I guess that it's passable
13:47:24
jackdaniel
when the text is at normal size and rotated, defects are practically invisible on both 90dpi and 160dpi monitors I've checked on
13:49:33
cmack
Interesting... I wonder if this will make my branch appear closer to passable or is it specific to CLX?
13:50:23
cmack
Also, there was something in one of your previous updates that made me want to ask: is this similar to making text atlases? Any similarities to SDF rendering?
13:51:05
jackdaniel
with xrender we work with glyph-sets, and I think that it is a similar concept to the atlas (but handled on the xserver side)
13:52:22
cmack
And it's separate from the font cache that Xorg (or Linux?) generates?... the fccache IIRC
13:53:13
jackdaniel
generally the glyphset is that we send pixmaps to the server for glyphs, and the server assigns an id to the glyph
13:53:43
jackdaniel
and then when we render text, we send a vector of glyph ids, and xserver will use glyphs in the set
13:54:19
jackdaniel
previously transformed text was very slow, because when I've implemented it a few years back we didn't have the concept of stencil
13:55:19
jackdaniel
so we had to create a new glyph-set for each transformation, and since there may be /a lot/ of transformations, especially if we rotate the text, that would eat up the memory with a separate glyph set for each one
13:55:46
jackdaniel
so instead of doing that we've created a glyph-set for the reminder of the rendering, and released it afterwards (when the transformation was not a translation)
14:11:57
cmack
ah maybe so... since much of opengl is vertices / geometry, I've just been living with the polygon fallback while learning the rest of McCLIM / egl/ opengl :)