nanogui: GrText is so slow?


Previous by date: 4 Dec 2001 17:52:21 -0000 GrText is so slow?, Olaf Winne
Next by date: 4 Dec 2001 17:52:21 -0000 Re: GrText is so slow?, David Erickson
Previous in thread: 4 Dec 2001 17:52:21 -0000 GrText is so slow?, Olaf Winne
Next in thread: 4 Dec 2001 17:52:21 -0000 Re: GrText is so slow?, David Erickson

Subject: Re: [nanogui] GrText is so slow?
From: Jordan Crouse ####@####.####
Date: 4 Dec 2001 17:52:21 -0000
Message-Id: <E16BJjb-000185-00@ns.censoft.com>

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: ####@####.####

Previous by date: 4 Dec 2001 17:52:21 -0000 GrText is so slow?, Olaf Winne
Next by date: 4 Dec 2001 17:52:21 -0000 Re: GrText is so slow?, David Erickson
Previous in thread: 4 Dec 2001 17:52:21 -0000 GrText is so slow?, Olaf Winne
Next in thread: 4 Dec 2001 17:52:21 -0000 Re: GrText is so slow?, David Erickson


Powered by ezmlm-browse 0.20.