compiling gtk apps on windows using gcc



Hubert Sokolowski writes:
I am developing a gtk application. I found that on windows it runs
slowly then on linux.

On identical machines? What kind of speed differences are you seeing?
tens of percents? Orders of magnitude?

It is visible when my application draws lines and rectangles to
GdkPixmap

As an X11 graphics context (GC) (which is what GdkGC's are closely
modelled upon) doesn't map well to a Windows device context (DC),
gdk/win32 has to do quite a lot of things for each gdk_draw_*().

For gdk/x11 it's much simpler, the simple gdk_draw_line() etc calls
map more or less directly to X11 protocol requests.

A GTK+ application that draws *lots* of lines, rectangles etc will
presumably be significantly slower on win32. (No, I don't have any
hard numbers to back up this.) Sorry, really not much one can do about
it.

--tml





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