Skip to content

Launch Keys ​

IMPORTANT

Status: Supported
Minimum Version: 1.0

Overview ​

Launch keys allow you to configure engine behavior before starting the game. Parameters are grouped by functional categories and used to configure rendering, debugging, performance, and game functions

Syntax ​

Launch keys are specified in the command line or configuration file in the format:

-<key>

or

-<key1> -<key2> -<key3>

Parameter Categories ​

Core ​

KeyDescription
auto_load_archAutomatically load game archives at startup
nologDisable logging to file

Engine ​

KeyDescription
xclsxDisable rendering of red text in debug
no_center_screenDo not center window on startup
dxdebugEnable DirectX debug mode
perfhud_hackForce activate all renderers
noprefetchDisable data preloading
demomodeDemo recording playback
nosoundCompletely disable the sound subsystem
r2Force enable R2 renderer
r4Force enable R4 renderer

Render ​

KeyDescription
disasmEnable shader disassembly
nonvsNo nvidia depthstencil (dx9 only)
noshadowsCompletely disable shadow rendering
no_occqDisable occq optimization
nodistortDisable distortion effects (heat, smoke)

Game ​

KeyDescription
designerPut all alive objects offline
debug_geEnable game event debug mode

API ​

KeyDescription
renderdocActivate RenderDoc integration for frame capture

Lua ​

KeyDescription
keep_luaDo not unload Lua on level change
use_callstackEnable callstack output on LUA errors

Interface ​

KeyDescription
no_debug_panelDisable ImGui debug panel

Usage Examples ​

Example 1: Complex Graphics Debugging ​

-dxdebug -disasm -renderdoc

→ Activates DirectX debug, shader disassembly, and RenderDoc capture

Example 2: Script Debugging ​

-use_callstack -keep_lua

→ Preserves Lua state and displays call stack on errors

Recommendations ​

  • ⚠ Limitations:
    The keys r2 and r4 are mutually exclusive - use only one of them
    noprefetch can cause stuttering when loading new zones
    nonvs only works in DirectX 9 mode
    nosound completely disables all sound effects and music

  • ✖ Anti-patterns:
    Avoid combining nolog + use_callstack when debugging scripts
    Don't activate all rendering keys at once
    Don't use demomode in normal gameplay

Published under the MIT license.