bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] GTK+ 2.2 Win32 build: display much too slow


From: Nardy Pillards
Subject: Re: [Bug-gnubg] GTK+ 2.2 Win32 build: display much too slow
Date: Wed, 22 Jan 2003 12:09:40 +0100

From: "Gary Wong"
Sent: Tuesday, January 21, 2003 9:43 PM
> Could you please try running the attached trivial GTK+ program?  It lets
you
> pop up a window with a 64x64 table (very similar to gnubg's MET window).
On
> my system, running this and opening and closing the table once uses from
> 1.41 to 1.75 seconds of CPU time, depending which theme is selected and
> whether GDK_USE_XFT is set.  (I consider this performance to be poor... it
> seems that at least under GTK+ 2.2, widgets are sufficiently heavyweight
> that creating 4096 of them is sluggish.  Perhaps it is worth looking into
> another approach for gnubg's MET.)
>
> If this test program runs in ~2 seconds on your system, then presumably
> gnubg is doing something to trigger the performance problem.

It took 1 minute 44 seconds before displaying the table
(ran the gtkspeedtest 3 times after cold reboot of PC)

(The compile and link command line used are at the end of this post)

> If this program is also slow, GTK+ itself appears to be the problem.  I
> find it hard to believe that it would be released in this state.
Searching
> the gimpwin-dev group at
>
>     http://groups.yahoo.com/group/gimpwin-dev/
>
> for "slow" gives a few leads... for example,
>
>     http://groups.yahoo.com/group/gimpwin-dev/message/3043
>
> suggests setting the environment variable PANGO_WIN32_NO_UNISCRIBE to
> something.  Does that make much difference, or are any of the other
> messages in the archive any use?
>
> Cheers,
> Gary.

I will look at the thread later today or tomorrow.
I did set the environment variable, but no change.

Nardy



(
copy & paste from MSYS:
)
$ make --file=makespeed
gcc -mms-bitfields -O3 -Wall -DHAVE_CONFIG_H -DLOCALEDIR=\"/mingw/lib/locale
\" -I. -I./lib -IH:/MINGW/include -IH:/MINGW/include/gtk-2.0 -IH:/MINGW/lib/
gtk-2.0/include -IH:/MINGW/include/atk-1.0 -IH:/MINGW/include/pango-1.0 -IH:
/MINGW/include/glib-2.0 -IH:/MINGW/lib/glib-2.0/include -IH:/MINGW/include/l
ibxml2 -I/mingw/include/glib-2.0 -IH:/MinGW/include/freetype2   -c -o
gtkspeedtest.o gtkspeedtest.c
gcc -o gtkspeedtest
gtkspeedtest.o  -mwindows -LH:/MinGW/lib -LH:/MinGW/lib -lgtk-win32-2.0 -lgd
k-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv   -Llib -levent  -lico
nv -lxml2 -lfreetype -lwinmm  -lpng -lz -lpng -lgdbm -lwinmm -lm
(
end copy & paste
)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]