openOMSI GitHub Discord
Environment variables

Docs / Reference / Environment variables

Performance

2 min readEdit this pagedocs/DEBUG_FLAGS.md

Variable Values / default What it does
OMSI_MAX_FPS number; default: the setting Frame rate limit for this run.
OMSI_VIDEO_MEMORY MB; default: the setting How much the game may hold on the graphics card in total (textures, meshes, render targets).
OMSI_TEXTURE_MEMORY MB; default: the setting Texture budget.
OMSI_SIM_THREAD 0/false/off/no, or anything else; default: the sim_thread setting (off) Run the AI traffic, people and scenery scripts on their own thread while the picture is drawn (one frame later). The offscreen run ignores it.
OMSI_FIXED_SCALE flag Keep the render scale fixed (no dynamic resolution).
OMSI_FULL_GPU flag Keep the requested settings on a small or shared graphics chip, and 8x MSAA with Enhanced+.
OMSI_INTEL_FULL_GPU flag Keep the requested settings on an Intel Vulkan adapter.
OMSI_BASIC_PIPELINES flag Use the reduced (basic) render pipelines, as after a driver failed to build the full ones.
OMSI_NO_PIPELINE_CACHE flag Compile every pipeline at each start, without the cache in ~/.openomsi/cache/pipelines-*.bin.
OMSI_NO_TEXTURE_CACHE flag Compress every texture at each start, without the cache in ~/.openomsi/cache/textures.
OMSI_KEEP_ALLOCATOR flag Skip the restart that swaps in the faster allocator at start.
OMSI_NO_BC flag Upload every texture as RGBA, also DXT files (no BC compression on the GPU).
OMSI_NO_TEXCOMPRESS flag No runtime texture compression: DXT files stay compressed blocks, everything else is RGBA.

Measuring performance#

OMSI_PROFILE=1 logs the time each stage of the frame takes; the session summary is written when the game closes or after --exit-after. OMSI_BENCH works on offscreen runs only.

Variable Values / default What it does
OMSI_PROFILE flag Log the time each stage of the frame takes, with a session summary at the end.
OMSI_PROFILE_GPU flag Profile: wait for the GPU so its time shows as a stage of its own.
OMSI_PROFILE_JSON file With OMSI_PROFILE: also write the session summary (after the 15 s warm-up) as JSON into this file. Compare runs with scripts/compare-performance.py.
OMSI_GPU_TIMERS flag Measure GPU time per pass with timestamp queries.
OMSI_GPU_TIMERS_RAW flag With OMSI_GPU_TIMERS: the passes in the order the GPU finished them.
OMSI_BENCH number Offscreen: draw the final picture this many more times and log the median CPU and GPU-wait time.
OMSI_BENCH_FRAMES flag With OMSI_BENCH: log every bench frame's times, not only the medians.
OMSI_BENCH_STEREO flag With OMSI_BENCH: benchmark a still stereo pair without a headset. --size is per eye; 100 degree vertical field of view, 64 mm eye distance.

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open