nanogui: GrText is so slow?


Previous by date: 4 Dec 2001 17:59:52 -0000 Re: GrText is so slow?, Jordan Crouse
Next by date: 4 Dec 2001 17:59:52 -0000 linux kernel version for 0.89pre8?, Iris Huang
Previous in thread: 4 Dec 2001 17:59:52 -0000 Re: GrText is so slow?, Jordan Crouse
Next in thread:

Subject: Re: [nanogui] GrText is so slow?
From: "David Erickson" ####@####.####
Date: 4 Dec 2001 17:59:52 -0000
Message-Id: <200112041759.JAA12309@mon-irva-11.broadcom.com>

I'm using the font caching code with freetype and I'm getting a nice 
performance boost. I just did the following:

cd microwin/src/engine
cp devfont.caching.c devfont.c

(linux 2.4.5, mips, rgb565)

- David

On Tuesday 04 December 2001 09:48 am, Jordan Crouse wrote:
> Your problem here is the Truetype.  You need to render each glyph
> individually, which unfortunately takes time, especially if your glyphs are
> complicated.  This is different than the compiled in fonts, which have pre
> generated bitmaps.  Not as pretty, but certainly much faster.
>
> We do have caching code (but I'm not sure if it is being used?) that should
> help keep the bitmaps around for speed, but if you have lots of different
> glyphs, even that gets slowed down.  Plus thats a serious memory hit....
>
> Unfortunately, this is the price that we pay for truetype support.  If
> there is anyone out there that is bored, this area of the code needs to be
> attacked with a machete, IMHO.
>
> Jordan
>
> On Tuesday 04 December 2001 10:39, Olaf Winne mentioned:
> > Hi all,
> >
> > I have to display text (a lot) with dynamical updates... I use this:
> >
> > GrText(wid, gc, POS_MLD_X,(POS_Y_1_2+35*ucCount),cMeldetext, -1,
> > GR_TFASCII);
> >
> > cMeldetext is a char array of my text (40 characters). It takes at least
> > a long time until the text is displayed.. You can see each character a
> > once appering on the display....
> >
> > Besides, I use True Types. Is that the probelem? (I try it tomorrow...)
> >
> > I use Linux 2.4.3. with VGA 16 Color Framebuffer.
> >
> > Can anybody help???
> >
> > Thank you,
> > Olaf
> >
> > Am Montag,  3. Dezember 2001 13:29 schrieb linuxhh:
> > > Hi, all
> > >
> > > Now I am porting linux to Cirrus Logic EP7312. My LCD is CSTN with 4096
> > > color. So how can I port MicroWindow to my platform? I have finish the
> > > linux kernel driver of LCD and can run run linux in my platform. My
> > > question is:
> > >
> > > 1. Because this LCD only have 4096 color, how can I deal with the
> > > pallette of MicroWindow? 2. There isn't any code to manage the 12BPP
> > > besides in "drivers\fblin12.c". Can I regard my platform as 256 color(
> > > 8BPP palette ) or 4096 color( 12BPP 444TrueColor )?
> > >
> > > Please help me, thanks.
> > >
> > >                                 Eric
> > >
> > > ______________________________________
> > >
> > > ===================================================================
> > > ÐÂÀËÃâ·Ñµç×ÓÓÊÏä (http://mail.sina.com.cn)
> > > ÐÂÀË·ÖÀàÐÅÏ¢£ºÇáËɶ©ÔÄ£¬Á¿Éí¶¨ÖÆ£¡ÖÜÖÜÓÐÀñ£¬´ó½±µÈÄ㣡
> > > (http://classad.sina.com.cn/)
> > > ÆßÖÖÊÖ»úͼƬ¡¢Ç§Ê×ÁåÉùÏÂÔØ¡­¡­ÐÂÀ˶ÌÐÅÎÞÏÞ¾«²Ê!
> > > (http://sms.sina.com.cn/)
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: ####@####.####
> > > For additional commands, e-mail: ####@####.####
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ####@####.####
> > For additional commands, e-mail: ####@####.####
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

-- 
David Erickson
Senior Staff Software Engineer
Broadcom Corporation
949-585-5875


Previous by date: 4 Dec 2001 17:59:52 -0000 Re: GrText is so slow?, Jordan Crouse
Next by date: 4 Dec 2001 17:59:52 -0000 linux kernel version for 0.89pre8?, Iris Huang
Previous in thread: 4 Dec 2001 17:59:52 -0000 Re: GrText is so slow?, Jordan Crouse
Next in thread:


Powered by ezmlm-browse 0.20.