>>Screen WaitBlanking?
Usage:
framesSinceLastWait=Screen(windowPtrOrScreenNumber,'WaitBlanking',[waitFrames])
Wait specified number of blankings (frame endings). Call with waitFrames==1 (or
omit it, since that's the default) to wait for the beginning of the next frame.
Video cards mark the end of each video frame by briefly reducing the voltage to
the Vertical Blanking Level (VBL), which "blanks" the screen to black. We do all
video timing relative to the beginning of blanking.
Usage:
framesSinceLastWait=Screen(windowPtrOrScreenNumber,'WaitBlanking',[waitFrames])
Wait specified number of blankings (frame endings). Call with waitFrames==1 (or
omit it, since that's the default) to wait for the beginning of the next frame.
Video cards mark the end of each video frame by briefly reducing the voltage to
the Vertical Blanking Level (VBL), which "blanks" the screen to black. We do all
video timing relative to the beginning of blanking.