setInterval which skips frames under heavy load