Re: Goocanvas : performance problem with goocanvas group ?



Ah ! Damon, you're right ! I've looked for the problem a long time and i didn't find... But i'm curious to know why in the demo package there's no slowdown...

Thanks for your help.

----- Mail Original -----
De: "Damon Chaplin" <damon karuna eclipse co uk>
À: "Alex Vasic" <alexis vasic free fr>
Cc: goocanvas-list gnome org
Envoyé: Mercredi 7 Avril 2010 10h42:11 GMT +02:00 Harare / Pretoria
Objet: Re: Goocanvas  : performance problem with goocanvas group ?

> It looks like you are creating new canvas items in the paint() method,
> which will probably cause problems. Try creating them in new() or
> somewhere else.
>
> paint() is called each time the item is redrawn so it looks like you are
> creating new items each time the main item moves.
>
> Damon





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