Add ability to limit framerate without sleeping threads or using vertical sync