title: What's the usual way of controlling frame rate?
body: <p>I'm new to graphics, so I don't know how people usually control the frame rate for rendering things.
  I mean, how can you set you application to render at, say, 30fps?
  There's probably lots of APIs that offers such thing, but I need to code it from scratch.</p>