This waits for the screen to send a vertical_retrace_done-signal. Call this routine right before asm_copy_screen() if you're having problems with flicker, or if you just want a fixed framerate.