This method of the DirectDraw Class assists the application to synchronize itself with the vertical-blank interval.
public void waitForVerticalBlank(int flags, int handle);
flags | One value of DDWAITVB_ type; flag specifies how long to wait for the vertical blank. |
handle | The handle of the event to be triggered when the vertical blank begins. |
getVerticalBlankStatus, getScanLine