nanogui: Ways to speed up a simple application?


Previous by date: 19 Mar 2009 22:29:58 -0000 Re: Ways to speed up a simple application?, Aaron J. Grier
Next by date: 19 Mar 2009 22:29:58 -0000 Re: Problem facing while installing nano X in Debian Base, Siji Sunny
Previous in thread: 19 Mar 2009 22:29:58 -0000 Re: Ways to speed up a simple application?, Aaron J. Grier
Next in thread: 19 Mar 2009 22:29:58 -0000 Re: Ways to speed up a simple application?, Michael Schnell

Subject: Re: [nanogui] Re: Ways to speed up a simple application?
From: "Greg Haerr" ####@####.####
Date: 19 Mar 2009 22:29:58 -0000
Message-Id: <159701c9a8e2$1a68f090$0300a8c0@RDP>

>    2. I converted DejaVu Sans 18 bold to a C source file using
convfnt, replaced the system font with it and recompiled nano-X. So,
this became the new "System" font. Rendering delay is still under 1
sec, which is nice. However, I lost anti-aliasing, and that makes the
font almost unreadable... It won't be a solution, then.

Another idea might be to enhance the font conversion utility
and nano-X to convert a truetype font to a grey (not 1bpp
like current incore fonts) bitmap, and then enhance nano-X
to allow anti-aliased display of the incore font.  The
freetype driver currently effectively produces this same
bitmap, and then calls a blit routine to draw it, so the
nano-X enhancement isn't much work.

Although anti-aliased bitmap display of glyphs using
freetype does take more time, considerable time is
taken converting the stored outline format to the
bitmap in the first place.  There is an older cached
freetype nano-X driver that would cache these
converted bitmaps which sped things up considerably.
Unfortunately, it broke with later versions of the FT
library.

Regards,

Greg




Previous by date: 19 Mar 2009 22:29:58 -0000 Re: Ways to speed up a simple application?, Aaron J. Grier
Next by date: 19 Mar 2009 22:29:58 -0000 Re: Problem facing while installing nano X in Debian Base, Siji Sunny
Previous in thread: 19 Mar 2009 22:29:58 -0000 Re: Ways to speed up a simple application?, Aaron J. Grier
Next in thread: 19 Mar 2009 22:29:58 -0000 Re: Ways to speed up a simple application?, Michael Schnell


Powered by ezmlm-browse 0.20.