[gcompris-devel] Performance issues

Terje Bergström terje at terje.fi
Sun Oct 7 12:50:21 UTC 2007


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.

Best regards,
Terje





More information about the Gcompris-devel mailing list