Page 1 of 1

Animation engine: Memory leak

Posted: Tue Mar 17, 2015 7:17 pm
by AstghikM
Hello,
I am using animation engine in my code to move objects, but after some time the movement slows down. Why? Here is the code

Code: Select all

on moveButton 
   aeSetFrameRate 50

   if isMoving is true then
      if lStage is 13 then
       set the movePolygonal["pointList"] of button("mover"&lStage) to the points of graphic ("Path"&myArr[lStage])
         set the movePolygonal["step"] of button("mover"&lStage) to 13
         put 1 into lStage
         
      else
         set the movePolygonal["pointList"] of button("mover"&lStage) to the points of graphic ("Path"&myArr[lStage])
         set the movePolygonal["step"] of button("mover"&lStage) to lStage*2
         add 1 to lStage
      end if
      send "movePolygonal" to button ("mover"&lStage)
      send "moveButton" to me in 3 milliseconds
   end if
   
end moveButton
or just from aeMoveTo

Code: Select all

 aeMoveTo the long id of grp("bubble "&x),  myxLoc,-50,x*2000

Re: Animation engine: Memory leak

Posted: Tue Mar 17, 2015 7:19 pm
by Klaus
We actually have a dedicated AE forum! 8)
Will move this (and other) thread(s) there.

Re: Animation engine: Memory leak

Posted: Wed Mar 18, 2015 1:55 pm
by malte
Hi,

I doubt memory is leaking. What it looks like is that the pendingMessages queue up quite a bit. Try sending in more milliseconds and increasing the step.

Hope that helps,

Malte

Re: Animation engine: Memory leak

Posted: Wed Mar 18, 2015 7:15 pm
by AstghikM
malte wrote:Hi,

I doubt memory is leaking. What it looks like is that the pendingMessages queue up quite a bit. Try sending in more milliseconds and increasing the step.

Hope that helps,

Malte
Thank you malte :) you gave me very important and useful information i didn't know about it :)