A variant of canvas-fit that handles some extra magic for you: adjusting the scale of the canvas to maintain smooth framerates