Skip to content

Headless Mode

Narta Xaymar Dirks edited this page Dec 3, 2026 · 1 revision

Headless mode

Set the environment variable BLITZLLVM_HEADLESS=1 (see Environment-Variables) and the program starts no window, asks no GPU and plays no sound. Everything that does not need to be seen or heard works as it does with a window, so the code of a game can run as its own server. A headless program needs much less memory, as no graphics driver is loaded and nothing is kept on a GPU.

What works as with a window

What does nothing

  • Drawing: RenderWorld, Flip, Cls, Rect, Line, Text, DrawImage and the other 2D commands, also into image and texture buffers. Those buffers only change through the pixel commands above.
  • The front and back buffer have no pixels: the pixel commands on them read 0 and write nothing. SaveBuffer and SaveImage save nothing.
  • Sound plays nowhere; sounds and channels still exist, so the program does not have to tell.
  • Input: no keys, mouse or joysticks.

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally