The normal SDL3 build can run without initializing SDL video or opening a window:
./build/scarletnx --game=recompiled/Game -H --seconds=30 --shot=/tmp/frame
# Or extract, recompile and launch a dump without a window:
./build/scarletnx "Game.xci" -H
-H enables it. Omit the flag for the normal window. --headless is the long spelling
and accepts no value (--headless=0 and --headless=1 are errors).
This is a startup option, not a live toggle or an INI setting. SDL3 is required by every NX runtime
build, but headless runs do not initialize its video subsystem or require a display server.
Rendering still uses Vulkan 1.3, including uploads, draws, compute and screenshot readback. Headless runs
create no window, VkSurfaceKHR or swapchain and request no WSI extensions, including VK_EXT_headless_surface.
Frames still submit and recycle their resources. --seconds, --frames, --script and --shot work as before.
The time and frame limits and the script count from the game's start, after the shaders made before it
(prepare_shaders).
FFmpeg decoding is always included in the NX runtime, including headless builds, for video and hwopus audio.
To use software rendering, select Mesa's lavapipe Vulkan ICD, rather than the hardware driver. Mesa may
report this device as llvmpipe in the Vulkan log. Selecting a CPU ICD is independent of -H:
# Linux example. Substitute the actual lvp ICD manifest installed on your machine.
VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json \
./build/scarletnx --game=recompiled/Game -H --seconds=30 --shot=/tmp/frame
Manifest names vary (for example lvp_icd.json). FreeBSD packages normally install manifests under
/usr/local/share/vulkan/icd.d/. Older Vulkan loaders use VK_ICD_FILENAMES instead of VK_DRIVER_FILES.
LIBGL_ALWAYS_SOFTWARE is an OpenGL setting and is not how this Vulkan renderer selects lavapipe.
No display server is required. Check the vulkan: device line in the log to confirm the chosen ICD.
The NX runtime includes SDL3 even when running headless; headless mode skips video initialization.
Made from docs/user/usage.md at 69237645142c. GPL-3.0-or-later.