How can I prevent "tearing" in emulation?