title: Javascript - Can't Adjust FrameRate - requestanimationframe
body: <p>I start the loop</p>
  
  <pre><code>function gameLoop(){
     update();
     draw();
     requestAnimFrame(gameLoop);
  }
  
  var requestAnimFrame =  window.requestAnimationFrame ||
                      window.webkitRequestAnimationFrame ||
                      window.mozRequestAnimationFrame ||
                      window.oRequestAnimationFrame ||
                      window.msRequestAnimationFrame ||
                      function(callback) {
                          window.setTimeout(callback, 1000 / 1);
                      };
  </code></pre>
  
  <ol>
  <li>I can't adjust the frame rate.  It is always really fast.  Why can't I change it to 1 frame a second.  I want to do this just for testing purposes.</li>
  <li>Do I have to clear the canvas each time?  It seems to work good without clearing it.</li>
  </ol>
  
  <p>Thanks.</p>
  
  <p>Here is a link to a fiddle for the complete code:
  <a href="http://jsfiddle.net/2kbeh/" rel="noreferrer">complete code</a></p>
  
  <p>Thanks</p>