Docs / Playing / User guide
Debug and test switches
Environment variables, all off unless set. The most useful ones are below; DEBUG_FLAGS.md lists every switch.
| Variable | What it does |
|---|---|
OMSI_PROFILE=1, OMSI_GPU_TIMERS, OMSI_DEBUG_DRAWS |
time per stage of the frame, GPU time per pass, how many instances changed per frame |
OMSI_MIRROR_HUD=n |
offscreen: lay the mirror panels (mirror_hud 1..3) over the picture |
OMSI_SEED=n |
repeat a session: the scripts' random is seeded per session (the log says which seed) |
OMSI_INPUT="t=3 move x,y; t=3.2 press; t=4 key F3; …" |
drive the real window handlers (mouse, keys, look/turn) from a script |
OMSI_CHURN=x,y |
offscreen check of tile streaming: load the tiles around that far point, unload the start area, unload the far tiles and load the start area again, so the picture is drawn from recycled GPU slots |
OMSI_HIDE_WINDOW=from,to |
pretend the window is hidden for those seconds |
OMSI_TEXTURE_MEMORY=MB, OMSI_BUDGET_FROM=x,y[,MB] |
the texture budget, and meeting it from somewhere else first |
OMSI_FLEET_IDLE=s, OMSI_FLEET_AHEAD=min |
how long an unused vehicle set is kept, how far ahead the fleet is read |
OMSI_NO_BC=1, OMSI_NO_TEXCOMPRESS=1, OMSI_KEEP_ALLOCATOR=1 |
textures as RGBA, no compression of loose pictures, no allocator restart |
OMSI_NO_SHADOWS, OMSI_NO_CORONAS, OMSI_NO_ENVMAP, OMSI_NO_BUMP, OMSI_NO_CULL, OMSI_ENV_PHOTO=0 |
leave one part of the picture out for an A/B |
OMSI_NO_SURF=1 |
roads without the bumps of their textures' .surf maps (A/B) |
OMSI_NO_PUDDLE_REFLECTIONS=1 |
leave wet-road scene reflections out for a screenshot or performance comparison |
OMSI_NO_SPRAY=1 |
leave the tyres' spray on wet roads out (A/B); OMSI_DEBUG_RAIN=1 logs how many tyres throw water |
OMSI_DEBUG_ENHANCED, OMSI_DEBUG_SKY, OMSI_DEBUG_EXPOSURE, OMSI_METER=… |
the enhanced renderer's lamps, sky, adaptation and metering |
OMSI_DEBUG_TRAFFIC, OMSI_DEBUG_PAX, OMSI_DEBUG_PHYSICS, OMSI_DEBUG_LAN, OMSI_DEBUG_IBIS, OMSI_DEBUG_VARS=a,b |
why a car, a passenger, a wheel, a peer, an IBIS or a script variable does what it does |
OMSI_CHECK_ROADS=1, OMSI_ROAD_PHOTO=1, OMSI_CHECK_ENTRIES=1 |
map checks: lanes with no road surface under them and road points under the ground; photograph the road network from above and report grass where a carriageway should be; is there ground to stand on where a player is put down |
OMSI_CONTENT=/dir, OMSI_CONTENT_ZIP=a.zip:b.zip, OMSI_ROOT=/dir |
where the content folder, the archives and the original installation are |
OMSI_DEBUG_CONES, OMSI_NO_LIGHT_MAP, OMSI_DEBUG_LIGHT_GRID |
log the light coronas and beams of each frame; leave the tiles' night light maps out; log the lights a full light-grid cell leaves out |
OMSI_PARKED_PULL_OUT=p |
the chance per population pass (about 2 s) that a parked car drives off (0.035 by default), with a log of why one does not |
OMSI_NO_BRIDGE=1 |
LAN play leaves the internet alone: no rendezvous, no UPnP, no tunnel (tests, LAN parties) |
OMSI_NO_LAN_MODS=1 |
a LAN host serves no mods and a joining game fetches none |
OMSI_BACKEND=vulkan|dx12|metal|gl|angle |
the graphics interface to ask first, over the setting (the log lists every adapter each one offers; angle, also dx11/d3d11: OpenGL ES on ANGLE over DirectX 11, Windows, with ANGLE's DLLs beside the game) |
OMSI_GPU_LIMITS=default|downlevel |
pretend the graphics card can only do this much (tests of old cards) |
OMSI_GPU_ARRAYS=textures|nostorage|lighttextures |
read the scene's arrays from textures, as on OpenGL chips without storage buffers in the vertex shader (or without any: no per-pixel lamp light; with lighttextures the lamps read from textures too, as on ANGLE) - tests of old cards |
OMSI_GL_TEXTURE_UNITS=1 |
use the OpenGL backend's texture-unit layout on any device (tests of old cards) |
OMSI_RENDER_OCCLUDED=1 |
draw even while the window is hidden (tests) |
OMSI_CHECK_OBSTACLES=1 |
offscreen: drive every lane as a bus and list the objects that would stop it |
OMSI_DEBUG_REPEATERS=1 |
list the spline object rows whose start the map and the spline chain disagree about |
OMSI_TRACE_STEER=file.csv |
write mouse steering, frame by frame (cursor, target, wheel, speed) |
OMSI_DAY_AIR=haze,angstrom[,height,strat] |
fix the air (and so the twilight colours) instead of the varying one, for comparisons |
OMSI_MUTE=1 |
mix all sound as usual but play nothing |
OMSI_LAN_AUDIO and OMSI_LAN_SAY are switches of the LAN tests.
Something wrong or missing? Fix it on GitHub or open an issue.