Function ClearVsyncFlag

From Uzebox Wiki
Jump to: navigation, search
Prototype

void ClearVsyncFlag(void);

Description

Clears the vertical sync flag. When the rendering of a field is complete, the vsync flag is set. Note that fields are rendered 60 times per seconds. Hence, this flag is set at a rate of 60hz. Note that for synchronizing on the refresh rate, WaitVsync() is recommended and support waiting for multiple frames.

Parameters

None

Returns

Void

Video Modes

N/A

Since

V1

Example:

while(1){
  if(GetVsyncFlag()){
    ClearVsyncFlag();
    //do someting...
  }
}