ur resident visa not valid if u leave the country more than 6 mths in a year. In another word, you have to be inside the country minimum period of 6 mths each year to keep your resident visa.

hope that helps.