This waits for the screen to send a vertical_retrace_partially_done-signal. It doesn't wait as long as wait_vrt(), so you can try this if you think wait_vrt() is too slow.
Call this routine right before asm_copy_screen()
if you're having problems with minor flicker.