| 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
|