Re: Slow Rendering?
Hi, Dennie, Brooke [EMAIL PROTECTED] writes: Hrmm. Setting the variable didn't seem to make much of a difference. The application now takes ~12s, but popups sped up to ~3s RENDER isn't implemented as far as I know since I get to see the extension RENDER missing error every time I run my program :D Any other ideas? Thanks again! Two more things that can cause long startup times are (a) not using fc-cache and (b) having extended input devices configured but not connected. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Slow Rendering?
Hi -Original Message- From: Tony Denault [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 10:20 PM To: Dennie, Brooke Cc: 'Sven Neumann'; '[EMAIL PROTECTED]' 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 console8x166.9 6.8 8x16 Courier 10 372 372 9x18 Fixed 6.8 6.9 9x15 LucidaTyperwriter 9361 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: [EMAIL PROTECTED] | | Institute for Astronomy | Phone: (808) 932-2378 | | 640 North Aohoku Place |Fax: (808) 933-0737 | | Hilo, Hawaii 96720 | | \- --/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Slow Rendering?
Hi, -Original Message- From: Sven Neumann [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 6:14 AM To: Dennie, Brooke Cc: '[EMAIL PROTECTED]' Subject: Re: Slow Rendering? Hi, Dennie, Brooke [EMAIL PROTECTED] writes: Hrmm. Setting the variable didn't seem to make much of a difference. The application now takes ~12s, but popups sped up to ~3s RENDER isn't implemented as far as I know since I get to see the extension RENDER missing error every time I run my program :D Any other ideas? Thanks again! Two more things that can cause long startup times are (a) not using fc-cache and Can't say that I'm familiar with that. Looks like I need to do some research... (b) having extended input devices configured but not connected. Thanks again for all your help! Hopefully one of these will work out Brooke Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Slow Rendering?
A quick grep of the source code (gdk/x11/gdkpango-x11.c) shows that the environment variable you really want is GDK_USE_XFT, not GDK_ENABLE_XFT. I don't know whether that will make any difference to what you're seeing, but it can't hurt to try. --Brett Dennie, Brooke wrote: Hi, -Original Message- From: Sven Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 10:30 AM To: Dennie, Brooke Cc: '[EMAIL PROTECTED]' Subject: Re: Slow Rendering? Hi, Sven Neumann [EMAIL PROTECTED] writes: Unless you set GDK_ENABLE_XFT to 0 explicitely, you are using the PangoXft backend then. Font configuration is done using fontconfig. Please check the fontconfig user documentation at http://pdx.freedesktop.org/~fontconfig/fontconfig-user.html Sorry, I confused your answer with another thread where a user was asking for information about font configuration. Oh good, I was beginning to wonder if I'd suddenly lost my mind... The answer to your question about speed issues on remote displays is that you could try to use X11 core fonts by setting the environment variable GDK_ENABLE_XFT to 0. This would disable antialiased fonts which are likely causing your speed issues. Does your X-Server implement the RENDER extension? Hrmm. Setting the variable didn't seem to make much of a difference. The application now takes ~12s, but popups sped up to ~3s RENDER isn't implemented as far as I know since I get to see the extension RENDER missing error every time I run my program :D Any other ideas? Thanks again! Brooke Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Slow Rendering?
Hi, Brett Granger [EMAIL PROTECTED] writes: A quick grep of the source code (gdk/x11/gdkpango-x11.c) shows that the environment variable you really want is GDK_USE_XFT, not GDK_ENABLE_XFT. I don't know whether that will make any difference to what you're seeing, but it can't hurt to try. Oops, sorry for this mistake and thanks to Brett for correcting me. It should be noted however that you cannot rely on the the non-Xft rendering being available in the future. In the long run Pango will drop support for X11 core fonts. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Slow Rendering?
Hi, -Original Message- From: Brett Granger [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 9:47 AM To: Dennie, Brooke Cc: 'Sven Neumann'; '[EMAIL PROTECTED]' Subject: Re: Slow Rendering? A quick grep of the source code (gdk/x11/gdkpango-x11.c) shows that the environment variable you really want is GDK_USE_XFT, not GDK_ENABLE_XFT. I don't know whether that will make any difference to what you're seeing, but it can't hurt to try. --Brett Well, that definitely made a difference. Unfortunately, it wasn't for the better :) Thanks for the correction, though. Brooke ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Slow Rendering?
Hi, Dennie, Brooke [EMAIL PROTECTED] writes: I have an application that works perfectly, but rendering is extremely slow (bringing up the application takes over 8 seconds, a popup window takes a little over 4). While I realize that it isn't necessarily a guarantee that this is the problem, stepping through the application with gdb shows that the bulk of this (4-5 seconds) occurs when I try to show the top widgets. However, if I take out all changes to the background colors and fonts, the time drops to 3 seconds to bring up the applicaton and 1 second for popup windows. I don't know if changing these via the rc file is faster, but that option isn't available to me anyway since I won't know what colors or fonts to use until run-time. Any ideas on what's going on? I can supply some code if necessary. Thanks for any help! Brooke PS - I'm working on a sparc ultra 5 that runs Solaris 8, BUT the application is running from a window where I've ssh'd to a linux terminal that runs redhat 9 with a 2.4.20-18.9 kernel It would help if you mentioned the version of GTK+ you are using and perhaps which Pango backend is in use. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Slow Rendering?
Hi, Dennie, Brooke [EMAIL PROTECTED] writes: Oops! Of course! Sorry. GTK+ is version 2.2.1. I'm not entirely sure what you mean by backend (sorry, I'm still pretty new to this), but I think it's pangoxft. Running pkg-config --list-all didn't show anything of interest, but pkg-config --modversion xft found a version 2 so I'm guessing that's what it's using? Unless you set GDK_ENABLE_XFT to 0 explicitely, you are using the PangoXft backend then. Font configuration is done using fontconfig. Please check the fontconfig user documentation at http://pdx.freedesktop.org/~fontconfig/fontconfig-user.html You also mentioned that you are using GTK+-DirectFB. How fonts are configured depends on what version of PangoFT2 you are using for this. If you are using version 1.2, the font configuration is based on fontconfig as well. If you are still using version 1.0 here, you should have a look at bottom of the DirectFB FAQ: http://directfb.org/documentation/faq.xml Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Slow Rendering?
Hi, Sven Neumann [EMAIL PROTECTED] writes: Unless you set GDK_ENABLE_XFT to 0 explicitely, you are using the PangoXft backend then. Font configuration is done using fontconfig. Please check the fontconfig user documentation at http://pdx.freedesktop.org/~fontconfig/fontconfig-user.html Sorry, I confused your answer with another thread where a user was asking for information about font configuration. The answer to your question about speed issues on remote displays is that you could try to use X11 core fonts by setting the environment variable GDK_ENABLE_XFT to 0. This would disable antialiased fonts which are likely causing your speed issues. Does your X-Server implement the RENDER extension? Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Slow Rendering?
Hi, -Original Message- From: Sven Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 10:30 AM To: Dennie, Brooke Cc: '[EMAIL PROTECTED]' Subject: Re: Slow Rendering? Hi, Sven Neumann [EMAIL PROTECTED] writes: Unless you set GDK_ENABLE_XFT to 0 explicitely, you are using the PangoXft backend then. Font configuration is done using fontconfig. Please check the fontconfig user documentation at http://pdx.freedesktop.org/~fontconfig/fontconfig-user.html Sorry, I confused your answer with another thread where a user was asking for information about font configuration. Oh good, I was beginning to wonder if I'd suddenly lost my mind... The answer to your question about speed issues on remote displays is that you could try to use X11 core fonts by setting the environment variable GDK_ENABLE_XFT to 0. This would disable antialiased fonts which are likely causing your speed issues. Does your X-Server implement the RENDER extension? Hrmm. Setting the variable didn't seem to make much of a difference. The application now takes ~12s, but popups sped up to ~3s RENDER isn't implemented as far as I know since I get to see the extension RENDER missing error every time I run my program :D Any other ideas? Thanks again! Brooke Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Slow Rendering?
On Thu, 20 Nov 2003, Dennie, Brooke wrote: The answer to your question about speed issues on remote displays is that you could try to use X11 core fonts by setting the environment variable GDK_ENABLE_XFT to 0. This would disable antialiased fonts which are likely causing your speed issues. Does your X-Server implement the RENDER extension? Any other ideas? Thanks again! You might want to experiment with the types of fonts you used in your GTK app. I am also getting into using PANGO, as our new project will use gtk 2.2x. We initially started using 1.2 API, now converting to pure 2.2 API. I recently switched from using gdk_font_load() to the PANGO stuff. My app is just using a large drawing area 1200x600 pixels. I am just filling the area with text display with various colors. I have a GTK timer that grab data from shared memory and refreshes the drawing area. When using gdk_font_load (-*-fixed-*-*-*-*-14-*-*-*-*-*-*-*), my timer function runs in 0.27 ms (fixed is a 8x17 font). This .27 ms is very steady. 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 console8x166.9 6.8 8x16 Courier 10 372 372 9x18 Fixed 6.8 6.9 9x15 LucidaTyperwriter 9361 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. 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(). 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). Tony /---\ | Tony Denault | Email: [EMAIL PROTECTED] | | Institute for Astronomy | Phone: (808) 932-2378 | | 640 North Aohoku Place |Fax: (808) 933-0737 | | Hilo, Hawaii 96720 || \---/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list