Re: [gtkmm] Weird slowdown with notebook
- From: Maurizio Umberto Puxeddu <mauriziopuxeddu yahoo it>
- To: Jussi Pakkanen <jpakkane yahoo com>
- Cc: gtkmm <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Weird slowdown with notebook
- Date: 03 Jun 2003 10:36:54 +0200
If you cause some huge amount of work to the X11 server, you will have a
slow refresh rate with an apparently little CPU usage by your
application. I had this kind of behaviour when I did "triple buffering"
by mistake (I didn't know gtk2 was double buffered by default).
Hope it helps somehow,
Maurizio Umberto Puxeddu.
On Tue, 2003-06-03 at 10:27, Jussi Pakkanen wrote:
> Hello all
>
> I'm coding a rather large level editor program using
> gtkmm. Up to now I have opened the level to be edited
> in a dedicated window. Recently I decided to make the
> GUI tabbed, so every level is in its own page in a
> notebook. This got me very strange behaviour:
>
> - the first time I resize a window with the notebook
> in it, it automatically resizes itself back to the old
> size, but only after a while
>
> - keypresses do not go to the widgets (drawing area)
> in the pages at first, banging the cursor keys a while
> fixes this
>
> - screen refreshes are extremely slow, an order of
> magnitude slower than using separate windows
>
> The weird thing is that the screen updates' speed is
> the same on debugging, optimised and even profiled
> builds. Profiling data is mostly useless, since it
> claims the program only runs for 13 seconds even if I
> force the program to refresh the screen for several
> minutes. I have checked that only the page that shows
> gets the expose_event, so this setup should be just as
> fast.
>
> My system is Debian testing with gtkmm 2.0. Any ideas
> on how to fix this?
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]