Only change resolution when we actually need to.