Halving mouse rx and ry just once improves performance

of the operation my 40%.