Function WaitVsync

From Uzebox Wiki
Jump to: navigation, search
Prototype

void WaitVsync(int count);

Description

Wait for the specified number of fields (1/60th of a second). Usually used to synchronize game play on a fixed time base.

Parameters
  • index: Fields to wait.
Returns

Void

Video Modes

All

Since

V1

Example:

while(1){
   WaitVsync(1);
   ...
   //game logic
}