[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Freetype2 speed issue
From: Sven Johnsson ####@####.#### Date: 14 Mar 2008 16:15:41 -0000 Message-Id: <47DAA497.80500@lip-wifi.com> Hello, I am using Freetype2 with Nano-X. Font drawing is very slow compared to the rest of my system and I hope this can be tweaked in some way. I have checked that HAVE_FREETYPE_2_CACHE and HAVE_FREETYPE_2_CMAP_CACHE in font_freetype2.c is set to one to activate cache. The font used is different versions of Myriad, which is a True Type font. -What can I do to speed up the font rendering? Best Regards, Sven Johnsson -- Sven Johnsson Hardware Developer ________________________________________ LUND IP PRODUCTS AB | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Freetype2 speed issue
From: "Greg Haerr" ####@####.#### Date: 14 Mar 2008 17:42:06 -0000 Message-Id: <124f01c885fa$ab3e6390$0300a8c0@RDP> : I am using Freetype2 with Nano-X. Font drawing is very slow compared to : the rest of my system and I hope this can be tweaked in some way. I have : checked that HAVE_FREETYPE_2_CACHE and HAVE_FREETYPE_2_CMAP_CACHE in : font_freetype2.c is set to one to activate cache. I modified the CVS version of the FT2 driver some months ago and fixed a number of smaller bugs. I found that the FT2 caching wouldn't compile, depending on the version of FT2 installed. I fixed font_freetype2.c to work with the latest FT2 version, but it turns off caching, due to changes in internal FT2 structure member names. Check the source file for more details, and compare with your installed version of FT2. Caching does work with older FT2 versions. We also have a really old FT1 caching driver. Let me know what you find, and we'll go from there. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Freetype2 speed issue
From: Sven Johnsson ####@####.#### Date: 17 Mar 2008 12:42:33 -0000 Message-Id: <47DE672E.7070700@lip-wifi.com> Greg, Thanks for your answer. I have downloaded the CVS source and I have done my best to understand the differences. I have checked if the FT2 caching is compiled in the current code, and it seems like ftcache.c is compiled (ftcache.o and ftcache.lo is built). After inserting some printf's in the Freetype2 cache source code I got the following result: When text is drawn, both FTC_CMapCache_Lookup() and FTC_Manager_Lookup_Face() are executed. I am using Microwindows 0.9 and Freetype 2.1.3. Regards, Sven Greg Haerr wrote: > : I am using Freetype2 with Nano-X. Font drawing is very slow compared to > : the rest of my system and I hope this can be tweaked in some way. I have > : checked that HAVE_FREETYPE_2_CACHE and HAVE_FREETYPE_2_CMAP_CACHE in > : font_freetype2.c is set to one to activate cache. > > I modified the CVS version of the FT2 driver some months ago > and fixed a number of smaller bugs. I found that the FT2 caching > wouldn't compile, depending on the version of FT2 installed. > I fixed font_freetype2.c to work with the latest FT2 version, > but it turns off caching, due to changes in internal FT2 structure member > names. Check the source file for more details, and compare with > your installed version of FT2. Caching does work with older > FT2 versions. We also have a really old FT1 caching driver. > > Let me know what you find, and we'll go from there. > > Regards, > > Greg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > > -- Sven Johnsson Hardware Developer ________________________________________ LUND IP PRODUCTS AB Dalbyvägen 1 SE-224 60 LUND Sweden Phone: +46-(0)46 5900 320 Fax: +46-(0)46 151 440 Mobile: +46-(0)704 670 882 Skype: sven.johnsson www.lip-wifi.com ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Freetype2 speed issue
From: "Greg Haerr" ####@####.#### Date: 17 Mar 2008 20:46:58 -0000 Message-Id: <13c201c8886f$faf3d3d0$0300a8c0@RDP> > I have checked if the FT2 caching is compiled in the current code, and it seems like ftcache.c is compiled (ftcache.o and ftcache.lo is built). You'll want to check whether caching is enabled in the microwindows code - engine/font_freetype2.c, its determined by version number and an additional #define. > I am using Microwindows 0.9 and Freetype 2.1.3. I assume you mean the CVS 0.92? If its still slow, tell us what the framebuffer format is, and you might want to look at the psd->DrawArea code, which for some drivers is supposed to be quite fast. This was a speedup from the FT1 driver which doesn't use the improved driver drawarea/blit support. You may need to profile the application to see where the time is really being spent. Regards, Greg Regards, Sven Greg Haerr wrote: > : I am using Freetype2 with Nano-X. Font drawing is very slow compared to > : the rest of my system and I hope this can be tweaked in some way. I have > : checked that HAVE_FREETYPE_2_CACHE and HAVE_FREETYPE_2_CMAP_CACHE in > : font_freetype2.c is set to one to activate cache. > > I modified the CVS version of the FT2 driver some months ago > and fixed a number of smaller bugs. I found that the FT2 caching > wouldn't compile, depending on the version of FT2 installed. > I fixed font_freetype2.c to work with the latest FT2 version, > but it turns off caching, due to changes in internal FT2 structure member > names. Check the source file for more details, and compare with > your installed version of FT2. Caching does work with older > FT2 versions. We also have a really old FT1 caching driver. > > Let me know what you find, and we'll go from there. > > Regards, > > Greg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > > -- Sven Johnsson Hardware Developer ________________________________________ LUND IP PRODUCTS AB Dalbyvägen 1 SE-224 60 LUND Sweden Phone: +46-(0)46 5900 320 Fax: +46-(0)46 151 440 Mobile: +46-(0)704 670 882 Skype: sven.johnsson www.lip-wifi.com ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |