For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > January 2005 > performance issues with createOval ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author performance issues with createOval ?
Alythh

2005-01-28, 3:59 pm

Hi, I am a newbie in Perl/Tk usage, and have a question for you
(possibly Linux-related).

I developed a program (http://sourceforge.net/projects/singing-ca/)
that - among other things - draws a cellular automata (CA) on a
canvas.
It draws it simply using createOval (since I didnt find a
createDot!!!) for each cell of the CA. This drawing is then repeated
as long as the CA evolves.

Now the question: after a little time the drawing is clearly slowed
down to a crawl, so that I tried to debug it for possible memory
leaks, or similar problems.
But it was really a graphic problem! I discovered that switching for a
moment to a different desktop (Workspace switch, I use IceWM on Linux)
and returning back, the drawing was finished in no time.

I cannot understand the reason of the problem, but it could be related
to the way the Tk program writes to the graphic card memory ... do you
have any insights on this?

thanks!

Alessandro Magni
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com