[gcompris-devel] Performance issues

Bruno Coudoin bruno.coudoin at free.fr
Sun Oct 7 13:12:24 UTC 2007


Le dimanche 07 octobre 2007 à 15:50 +0300, Terje Bergström a écrit :
> On Sunday 07 October 2007 15:33:38 Bruno Coudoin wrote:
> > > I get a printout in display_confirm() at beginning, and after about half
> > > a second in the end of display_confirm(). After this it still takes three
> > > seconds for the display to pop up. I don't yet know what happens during
> > > those three seconds, or how to even find out.
> > OK, try to add a gnome_canvas_update_now(gcomprisBoard->canvas) at the
> > end of display_confirm() do force a canvas refresh.
> 
> I did almost that: gnome_canvas_update_now(gc_get_canvas()), as gcomprisBoard 
> isn't visible in gcompris_confirm.c. I put a printout to beginning of 
> display_confirm(), just before calling gnome_canvas_update_now() and after 
> gnome_canvas_update_now(). 
> 
> The three seconds are spent in gnome_canvas_update_now(). The last text comes 
> now at the same time when window gets drawn on screen.

I don't know where is may bring us but you can try to digg further in
our src/libgnomecanvas/gnome-canvas.c:do_update() other function of
interest are add_idle() idle_handler()

-- 
Bruno Coudoin
http://gcompris.net Free educational software for kids
http://toulibre.org Logiciel Libre à Toulouse





More information about the Gcompris-devel mailing list