On Fri, Dec 07, 2007 at 01:30:33PM -0700, Matthew Fulmer wrote:
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.
By the way, it isn't the step method that gets called a lot while dragging, it is the drawOn: method. So, it seems the stepping method is doing it's thing, but you only get to see it if you redraw more often
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?
I missed that it was set to 1 before. I don't think the scheduler can really honor step times less than 30 or so. I believe it tries, but there is usually too much other stuff to do.