[Gtk-sharp-list] Tips for drawing quickly

Michael Hutchinson m.j.hutchinson at gmail.com
Tue May 22 10:49:05 EDT 2007

On 5/22/07, Aaron Oxford <aaron at hardwarehookups.com.au> wrote:
> I therefore submit the following very basic, more than likely biased,
> test comparing the three-fold path of fastly drawing under Gtk# -
> purely for interest's sake. Just open the program and resize it,
> keeping it almost the same size but causing it to redraw and gather
> data over a long period. On my machine, (3800 X2, 7600GT, Server2k3,
> Gtk#2.8.3) redrawing overall happens at about 1-2 fps. The measured
> drawing times are:
> Gdk:                    324 ms (3 FPS)
> Cairo:                  292 ms (3.5 FPS)
> System.Drawing: 24 ms (Badooshka)

I have Ubuntu 7.04 (GTK 2.10), on a 4200+ X2 with a 6600GT. Modifying
the program to divide my the number of expose events (i.e. to get an
average), and dividing by 1e4 to convert from 100ns ticks to ms the
lowest averages I can reproduce are around
GDK: 220 ms
System.Drawing: 200 ms
Cairo: 380 ms

So no, it doesn't look like your results are specific to Windows.

OTOH, I find Gnumeric usably responsive, even on a 1.4GHz Windows laptop.

Michael Hutchinson

More information about the Gtk-sharp-list mailing list