better commentary.
extract scaling to render-loop.