Performance/memory management in switching of surface