RE: high-level text drawing



With your program to test on my machine,
        If I use the "Fixed" font, pango is ~21 times slower.
        If I use default font pango is ~268 times slower.
My tester is slower should be the network,
        My Xserver is Exceed runs on a P4 2.6GHZ, Xclient is SUN box.
        
Thanks.


-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Olexiy
Avramchenko
Sent: Monday, December 29, 2003 1:04 PM
To: Tom Liu
Cc: gtk-app-devel-list gnome org
Subject: Re: high-level text drawing

Whoops, XDrawString output was clipped:
~70 times now with Xft
~15 times with GDK_USE_XFT=0

--- pango-test.c.orig   2003-12-29 20:00:08.000000000 +0200
+++ pango-test.c        2003-12-29 20:01:52.000000000 +0200
@@ -37,7 +37,7 @@
        g_timer_start(timer);
        for (i=0;i<count;i++) {
                sprintf(s, "str%d", i);
-               XDrawString(GDK_DISPLAY(),
GDK_DRAWABLE_XID(area->window), GDK_GC_XGC(area->style->black_gc), 0,0,
s, strlen(s));
+               XDrawString(GDK_DISPLAY(),
GDK_DRAWABLE_XID(area->window), GDK_GC_XGC(area->style->black_gc), 0,24,
s, strlen(s));
        }
        gdk_flush();
        g_timer_stop(timer);
@@ -49,8 +49,8 @@
                "gdk_draw_layout: %fms total, %fus per string\n"\
                "XDrawString: %fms total, %fus per string\n\n"\
                "gdk_draw_layout/XDrawString: %f\n",
-               t0/1000.0, t0*1000.0*1000.0/count,
-               t1/1000.0, t1*1000.0*1000.0/count,
+               t0*1000.0, t0*1000.0*1000.0/count,
+               t1*1000.0, t1*1000.0*1000.0/count,
                t0/t1
        );



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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