Skip to content

TotalVidMem

Claude edited this page Oct 27, 2026 · 4 revisions

Blitz3DBlitzPlusBlitzBasic

TotalVidMem

TotalVidMem:Int32

Returns: The size of the video memory in bytes.

Description

The total amount of video memory in bytes.

Differences

  • The answer comes from the graphics card and is cut off at 2 GB because it has to fit into an integer. It is 0 when no graphics window is open.

Examples

Graphics 320, 240, 0, 2
Print "Video memory: " + (TotalVidMem() / 1048576) + " MB"
WaitKey

Related Commands

AvailVidMem, SetGfxDriver, ShowPointer, UpdateGamma

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally