Re: performance of goocanvas




I think this is a good guess, we had a lot of trouble with foocanvas (the goocanvas predecessor) with this. In the end we were forced to draw certain things ourselves on to the screen in order to get good enough performance.

If you are moving the scrolled region as you scroll that would do it....

Ed



I don't think the problem is drawing. I put a "return;" statement at the
top of the GooCanvasPolyline's draw function so it didn't draw anything,
but it was just as slow!

I think the problem may be that you are sometimes changing items when
the canvas is scrolled, and this causes the canvas to have to
recalculate the bounds of lots of items, which is slow.

What changes are you making when the canvas is scrolled? Is there a way
to avoid them?

Damon


_______________________________________________
goocanvas-list mailing list
goocanvas-list gnome org
https://mail.gnome.org/mailman/listinfo/goocanvas-list


--
 ------------------------------------------------------------------------
| Ed Griffiths, Acedb/ZMap development, Informatics Group,               |
|  The Morgan Building, Sanger Institute, Wellcome Trust Genome Campus   |
|  Hinxton, Cambridge CB10 1HH                                           |
|                                                                        |
| email: edgrif sanger ac uk  Tel: +44-1223-496844  Fax: +44-1223-494919 |
 ------------------------------------------------------------------------


--
The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.

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