Skip to content
Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

VWait

VWait:Void frames:Int32=1
Parameter Mode Type Default Description
frames In Int32 1 How many frames to wait for. Defaults to 1.

Description

Waits for the display to finish showing a picture, which is used to keep a program at the speed of the display.

Differences

  • There is no vertical blank to wait for, so VWait waits 16 milliseconds for each frame (60 frames per second). Use Flip with vwait for the real display timing.

Examples

Graphics 320, 240, 0, 2
Local t = MilliSecs()
VWait 30
Print "30 frames took " + (MilliSecs() - t) + " ms"
WaitKey

Related Commands

TotalVidMem, UpdateGamma

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally