removed scale computation from frame loop