wait for device ready before doing viewport stuff