Draw distance calculation update and viewer controls cleanup