Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: A Tk::Animation question

by cbraga (Pilgrim)
on Oct 15, 2004 at 23:46 UTC ( [id://399697]=note: print w/replies, xml ) Need Help??


in reply to A Tk::Animation question

Is your problem that you have to add multiple copies of the same frame to an animation, thus making it big, or that the memory footprint simply grows when the animation is left playing?

In the first case, you should probably create an image cache, loading each file only once and then passing the resulting Tk image objects to the animation object, multiple times if needed.

In the second case, I assume you aren't creating new animation objects over and over but rather resetting it and re-playing the same animation object, right? If that's the case it could be a Tk bug, try destroying the animation object and creating it again from the frames after it's played each time.

ESC[78;89;13p ESC[110;121;13p

Replies are listed 'Best First'.
Re^2: A Tk::Animation question
by seith (Initiate) on Oct 16, 2004 at 00:11 UTC
    Oh boy do I feel silly! Thanks, that was the first case, and your suggestion of creating an image cache took care of the problem. Again, thank you, I was stuck and you got me going!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://399697]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found