title: Stuttering animation whilst using CADisplayLink
body: <p>I am trying to animate some UIImageViews to 'fall' down the page using <code>CADisplayLink</code> to call a <code>MoveObjects</code> function. However, despite the function calls being at consistent 0.0155-0.017s intervals, the animation appears to stutter every few frames, in the same way as it did when I tried using a <code>NSTimer</code> to call the function. Is there anything that i'm doing wrong, which is making it stutter?</p>
  
  <p>in <code>viewDidLoad</code>:</p>
  
  <pre><code>displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(gameLoop)];
  displayLink.frameInterval=1;
  [displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode];
  </code></pre>
  
  <p>currently gameloop pnly calls UpdateObjects:</p>
  
  <pre><code>-(void)updateObjects{
      timeStamp=[displayLink timestamp];
      double frameTime=timeStamp-oldTime;
      oldTime= timeStamp;
      if (frameTime&gt;10){
          frameTime=0;
      }
      NSLog(@"%f",frameTime);
  
      for (int i=0; i&lt;objectsArray.count; i+=1) {
          UIImageView *currentObject=[objectsArray objectAtIndex:i];
          CGRect currentObjectFrame=[currentObject frame];
          [currentObject setFrame:CGRectMake(CGRectGetMinX(currentObjectFrame), CGRectGetMinY(currentObjectFrame)+200*frameTime,CGRectGetWidth(currentObjectFrame) , CGRectGetHeight(currentObjectFrame))];
      }
  }
  </code></pre>