title: Setting a fixed FPS in Pygame, Python 3
body: <p>I'm currently making a game using PyGame (Python 3), and I'm looking for a way to make the game run at a fixed FPS.</p>
  
  <p>Most of the game is located inside a giant while loop, where the user input is taken, sprites are rendered, etc. every tick. My goal is to be able to set a fixed FPS that will make the game run at the same speed on a fast or slow computer.</p>
  
  <p>I can, of course, use the clock module in pygame:</p>
  
  <pre><code>clock = pygame.time.Clock()
  </code></pre>
  
  <p>and then call this every loop:</p>
  
  <pre><code>clock.tick(30)
  </code></pre>
  
  <p>but that will keep the game CAPPED at 30 FPS. So if I set it to 500 FPS it might still run as fast as it did before. My goal is that if I set it to 500 FPS it will run at the same SPEED as it would at 500 FPS...</p>
  
  <p>So is it possible to make the game run at a fixed FPS (or make an illusion of that), regardless of the speed of the computer - or at least run at the same speed through the use of some frame-skip algorithm?</p>
  
  <p>Sorry if that wording was rather confusing.</p>