title: Best approach for game animation?
body: <p>I have a course exercise in OpenGL to write a game with simple animation of a few objects</p>
  
  <p>While discussing with my partner our design options we've realized we have two major choices for how the animation is going to work, Either  </p>
  
  <ul>
  <li>Set a timer for a constant interval, say 30 msec, when the timer hits, calculate where objects should be and draw the frame. or -</li>
  <li>Don't use a timer, just a normal loop that runs all the time and in each iteration check how much time passed, calculate where the objects should be according to the interval and draw the frame. </li>
  </ul>
  
  <p>What should generally be the preferred approach? Does anyone have concrete experience with either approach?</p>