RE: Slow Rendering?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

> -----Original Message-----
> From: Tony Denault [mailto:denault@xxxxxxxxxx]
> Sent: Thursday, November 20, 2003 10:20 PM
> To: Dennie, Brooke
> Cc: 'Sven Neumann'; 'gtk-list@xxxxxxxxx'
> Subject: RE: Slow Rendering?



> My initial test using pango caused the timer function to
> take >270 ms (over 1000x slower). After picking up the 
> maillist thread, I
> decide to experiment using different font as I though PANGO might
> be rendering everything and sending images to the X11 client windows.
> Here is a table of different fonts using Pango;
> 
> Font               Pango     PangoGDK_ENABLE_XFT=0   size
> ----------------------------------------------------------
> San 8                  270   250                     7x15
> Serif 10               360   362                     8x19
> miscFixed  9           6.8   6.7                     6x14
> miscFixed 10           6.9   6.8                     9x15
> console8x16            6.9   6.8                     8x16
> Courier 10             372   372                     9x18
> Fixed                  6.8   6.9                     9x15
> LucidaTyperwriter 9    361   361                     8x17
> 
> Also note the Pango time varies widely, for example the
> 360 ms can jump about upto 700ms. I wrote the 'best' time
> for the table.
> 

That's interesting. I hadn't thought of that actually. Some of
my problem could be in the type of font. I'm never given an
xfd, but rather I'm handed an XFontStruct. What I've been 
doing is just creating an empty font description, then 
calling XGetFontProperty on the XFontStruct and pulling all of
the values I need for the font description out of it and
filling those in.


> GDK_ENABLE_XFT=0 help a little (sometimes).
> For me picking a better font will help. 6.8 ms is OK, but I would
> like better -> This is still 25x slower that gdk_font_load().
> 

Not really an option due to the nature of the project...


> My GTK app runs on a linux box running Fedora Core release 
> 0.94 (Severn).
> I am displaying on a XP computer running X-Win32 X11 server.
> 
> Running the app directly on the linux console improves things somewhat
> (ie: 6.8ms -> 4.8ms).
> 

Also not an option...


> Tony
> 
> /-------------------------------------------------------------
> ----------\
> | Tony Denault                     | Email: 
> denault@xxxxxxxxxxxxxxxxxxx |
> | Institute for Astronomy          |              Phone: 
> (808) 932-2378 |
> | 640 North Aohoku Place           |                Fax: 
> (808) 933-0737 |
> | Hilo, Hawaii 96720               |                          
>           |
> \-------------------------------------------------------------
> ----------/
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux