envVars field of a container’s .container config file. The EnvVars class parses them as a space-separated list of KEY=VALUE pairs:
Variables are applied at container startup. Restart the container after making changes for them to take effect.
Default environment variables
Every new container is initialized with the following defaults (fromContainer.DEFAULT_ENV_VARS):
| Variable | Default value | Description |
|---|---|---|
ZINK_DESCRIPTORS | lazy | Delays descriptor set allocation in the Zink OpenGL-over-Vulkan driver, improving overall throughput. |
ZINK_DEBUG | compact | Activates compact descriptor mode in Zink, reducing GPU memory pressure. |
MESA_SHADER_CACHE_DISABLE | false | Keeps Mesa’s on-disk shader cache enabled so compiled shaders are reused across runs. |
MESA_SHADER_CACHE_MAX_SIZE | 512MB | Caps the shader cache on disk to 512 MB, preventing unbounded storage use. |
mesa_glthread | true | Moves OpenGL command marshalling to a background thread, offloading the main CPU thread and reducing frame-time spikes. |
WINEESYNC | 1 | Enables Wine’s eventfd-based synchronization (esync), replacing Wine’s older server-round-trip sync model for far lower CPU overhead in sync-heavy games. |
MESA_VK_WSI_PRESENT_MODE | mailbox | Uses the Vulkan mailbox (triple-buffering) present mode instead of FIFO, reducing perceived latency. |
TU_DEBUG | noconform | Disables strict Vulkan conformance checks in the Turnip Adreno driver, which would otherwise reject some valid game usage patterns. |
Additional useful variables
MESA_EXTENSION_MAX_YEAR
MESA_EXTENSION_MAX_YEAR
2003 is recommended for games from the early 2000s.WINEDEBUG
WINEDEBUG
warn, err, and fixme. You can narrow or broaden the output:| Value | Effect |
|---|---|
warn,err,fixme | Default — warnings, errors, and unimplemented stubs |
+all | Everything (very verbose, performance impact) |
-all | Silence all Wine debug output |
+d3d | Only Direct3D debug messages |
DXVK_ASYNC
DXVK_ASYNC
DXVK_HUD
DXVK_HUD
| Value | Shows |
|---|---|
fps | Frames per second |
frametimes | Frame-time graph |
submissions | GPU submission count |
drawcalls | Draw call count |
pipelines | Compiled pipeline count |
full | All of the above |
Format reference
TheEnvVars class (see EnvVars.java) parses the variable string as follows:
- Entries are space-separated:
KEY1=VALUE1 KEY2=VALUE2 - No quotes are needed for simple values
- Values with spaces must escape the space with a backslash (
\) in the stored string (handled automatically by the UI) - Duplicate keys are overwritten; the last definition wins
- The full list can be retrieved as a
String[]viatoStringArray()or as a single escaped string viatoEscapedString()
