Calculate resolution_scale