[Newbies] Morph speeds up stepping when grabbed

Matthew Fulmer tapplek at gmail.com
Fri Dec 7 20:30:33 UTC 2007

On Fri, Dec 07, 2007 at 04:22:17AM -0800, kropki wrote:
> Hi!
> I'm having some performance problems with morphs, I think.
> I have made two morphs: first is the owner of the second and the second one
> is doing stepping with as little timeStep, as possible (1?). Still it's too
> slow.
> When I click on the morph, the owner is being picked. While in the air, the
> step function for the submorph suddenly gets called very often and the
> animation is nice and fast.
> What's the reason for that? How can I modify the morphs, so that I get
> faster animation, when morphs aren't grabbed? Is it because, while in the
> air, one morph or another gets different stepTime or the step method is
> called in a different way? Or maybe some part of the code is not being run
> resulting in less overhead?

What are you doing in the step method? It sounds like whatever
the step method does is not initiating a redraw. You need to
call self changed in order to initiate a redraw.

also, what is stepTime set to?

Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808

More information about the Beginners mailing list