Back

Animate

Animate calls a function repeatedly like setInterval() but with the current time (Date.getTime()) and the difference to the last call in milliseconds as parameter
when using _AddOptions( "NoDom" ); to cause a high performance you cannot use SetInterval but Animate.

comparison:

normal:
  setInterval: about 242 calls per second
  app.animate: about 217 calls per second

with "NoDom" option:
  setInterval: error
  app.Animate: max. 600-750 calls per second

app.Animate( callback, fps )

function( time, dtime )
number - integer