Fixed slow emulator speed.

Also trying to fix flickering problem.