Canvas widget getting very slow

[email protected] Wed, 14 Jan 2009 15:46:01 +0100 (CET)
Newsgroups gmane.comp.lang.perl.tk
Message-ID <1588373156.243713.1231944361586.JavaMail.webmailer@webmail.1and1.com>
--===============0184192317253253505==
Content-Type: multipart/alternative; 
	boundary="----=_Part_243712_1255082570.1231944361586"

------=_Part_243712_1255082570.1231944361586
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit






Hi all,


I'm using a Canvas widget to emulate a raster graphics display.
I'm setting pixels by drawing lines of length 1.


Unfortunately the Canvas gets slow exponentially when
a lot of such line items are added. If there are more than
about 8000 it's getting very slow, and above 12000 it's getting
extremely slow...


If I wait until everything's drawn and then delete everything and
draw again, it is a bit faster. Maybe this points to an influence of
some cache.


Does somebody know of a solution to this. Or is there a better
widget to emulate a raster graphics display?


Thanks & kind regards,
Gerhard


------=_Part_243712_1255082570.1231944361586
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en" lang=3D"en"><t=
itle></title><head><meta http-equiv=3D"Content-type" content=3D"text/html; =
charset=3DUTF-8" /><style type=3D"text/css">html { margin:0px; padding:0px;=
 } body { font-size: 100.01%; font-family : Verdana, Geneva, Arial, Helveti=
ca, sans-serif; width:100%; height:100%; background-color:transparent; over=
flow:show; background-image:none; margin:0px; padding:5px; }p { margin:0px;=
 padding:0px; } body { font-size: 12px; font-family : Verdana, Geneva, Aria=
l, Helvetica, sans-serif; } p { margin: 0; padding: 0; } blockquote { paddi=
ng-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; } bloc=
kquote.quote { border-left: 1px solid #CCC; padding-left: 5px; margin-left:=
 5px; } .misspelled { background: transparent url(//webmailng.1und1.de/stat=
ic_resource/mailclient/widgets/basic/parts/maileditor/spellchecking_underli=
ne.gif) repeat-x scroll center bottom; } .correct {} .unknown {} .ignored {=
}</style></head><body id=3D"bodyElement" style=3D"">
<BASEFONT face=3DVerdana size=3D2><FONT face=3DVerdana size=3D2></FONT></BA=
SEFONT>
<P><BR><SPAN id=3Deditor_signature><FONT face=3DVerdana color=3D#000000 siz=
e=3D2>Hi all,</FONT></SPAN></P><SPAN><FONT face=3DVerdana color=3D#000000 s=
ize=3D2>
<P><BR>I'm using a Canvas widget to emulate a raster graphics display.<BR>I=
'm setting pixels by drawing lines of length 1.</P>
<P><BR>Unfortunately the Canvas gets slow exponentially when<BR>a lot of su=
ch line items are added. If there are more than<BR>about 8000 it's getting =
very slow, and above 12000 it's getting<BR>extremely slow...</P>
<P><BR>If I wait until everything's drawn and then delete everything and<BR=
>draw again, it is a bit faster. Maybe this points to an influence of<BR>so=
me cache.</P>
<P><BR>Does somebody know of a solution to this. Or is there a better<BR>wi=
dget to emulate a raster graphics display?</P>
<P><BR>Thanks &amp; kind regards,<BR>Gerhard</FONT></SPAN></P></body></html=
>
------=_Part_243712_1255082570.1231944361586--

--===============0184192317253253505==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk


--===============0184192317253253505==--