Engine Options Reference

Engine options are loaded from two files at startup:

  • ./Engine/Options.xml — engine defaults, shipped with the engine. Never overwritten by the engine at runtime.

  • ./Data/Options.xml — user overrides. Optional; if absent, engine defaults are used as-is. Values here take precedence over any matching entry in the engine defaults file.

Each option is a <Parameter> entry with a Description (the option name), a Value, and a valueType. Options are global and persist across levels and sessions; they can also be read and modified at runtime through the API (get_options / save_options).

Calling save_options() / saveOptions() writes the current in-memory options to ./Data/Options.xml only — engine defaults are never touched. This means custom values survive engine restarts without risk of corrupting the shipped defaults.

The values below are the defaults shipped with the engine. Unless noted, changing an option takes effect the next time the engine starts; audio channel volumes are applied live.

Note

valueType values map to: Long (integer), Double (floating point), Boolean (True/False), String (text), Vec4 (X/Y/Z[/W] coordinate), LongArray / FloatArray (comma-separated lists).

General

Option

Type

Default

Description

dataDirectory

String

../dataLocal/

Root directory the engine loads game data and assets from.

render_backend

String

libOpenGLGraphicsBackend

Graphics backend library to load (e.g. OpenGL or OpenGL ES).

render_pipeline

String

./Engine/forward_renderPipeline.xml

Render pipeline definition loaded at startup.

Display

Option

Type

Default

Description

display_width

Long

2560

Game window width in pixels.

display_height

Long

1440

Game window height in pixels.

display_fullScreen

Boolean

False

Launch in fullscreen.

render_textureFiltering

String

Trilinear

Texture filtering mode: Nearest, Bilinear or Trilinear.

Audio

Audio is mixed on five channels (buses). The effective gain of a sound is per-sound gain × channel volume × master volume. These options are the channel volumes; see Audio Channels in the Python API reference. Changes are applied to the mixer immediately.

Option

Type

Default

Description

audio_volumeMaster

Double

1.0

Master channel volume, normalized 0.0..1.0. Multiplies every sound.

audio_volumeMusic

Double

1.0

Music channel volume, normalized 0.0..1.0.

audio_volumeSFX

Double

1.0

Sound-effects channel volume, normalized 0.0..1.0.

audio_volumeSpeech

Double

1.0

Speech/dialogue channel volume, normalized 0.0..1.0.

audio_volumeAmbient

Double

1.0

Ambient/environmental sound channel volume, normalized 0.0..1.0.

Player Movement

Option

Type

Default

Description

player_walkSpeed

Vec4

(8, 0, 8)

Player walk speed.

player_runSpeed

Vec4

(12, 0, 12)

Player run speed.

player_moveSpeed

Vec4

(8, 0, 8)

General movement speed.

player_freeMovementSpeed

Vec4

(0.5, 0.5, 0.5)

Free-camera (editor / debug) movement speed.

player_lookAroundSpeed

Double

-6.5

Look sensitivity. Applies equally to mouse and gamepad stick (both normalised to the same unit). See Look Speed and Analog Alignment.

gamepad_deadZone

Double

0.1

Gamepad analog axis dead zone. Stick values with absolute magnitude below this threshold produce no output.

player_jumpFactor

Double

7.0

Jump impulse factor.

Lighting and Shadows

Option

Type

Default

Description

performance_maximumLights

Long

4

Maximum number of simultaneously active lights. A directional light, if there is one, always takes a slot; the point lights that survive culling fill the rest, closest to the player first.

shadow_mapDirectionalSize

Long

2048

Directional light shadow map resolution.

shadow_mapPointWidth

Long

512

Point light shadow map width.

shadow_mapPointHeight

Long

512

Point light shadow map height.

shadow_pointSampleCount

Long

20

PCF sample count for point light shadows.

shadow_directionalSampleCount

Long

8

PCF sample count for directional light shadows.

shadow_cascadeCount

Long

4

Number of cascaded shadow map cascades.

shadow_cascadeLimitList

FloatArray

5.0, 20.0, 50.0, 150.0, 250.0

View-space distance splits between shadow cascades.

shadow_cascadeStaggerOffsets

LongArray

4, 1, 2, 4

Per-cascade frame offset for staggered shadow updates (cascade 0 updates every frame).

shadow_cascadeStaggerIntervals

LongArray

4, 2, 4, 8

Per-cascade update interval in frames. Larger values improve framerate but delay shadow updates.

shadow_directionalProjectionBackOff

Double

-5000

How far behind the player frustum the directional light’s view origin is pulled. Increase it to capture shadow casters behind the camera.

shadow_pointNearPlane

Double

0.1

Near plane for point light shadow projection.

shadow_pointFarPlane

Double

100

Far plane for point light shadow projection.

Ambient Occlusion (SSAO)

Option

Type

Default

Description

ssao_width

Long

2560

SSAO buffer width.

ssao_height

Long

1440

SSAO buffer height.

ssao_sampleCount

Long

9

SSAO kernel sample count.

ssao_blurRadius

Long

1

SSAO blur radius.

ssao_strength

Double

3.0

Gain on the blurred occlusion before it removes ambient light, clamped to 1. The raw occlusion peaks around 0.3 in creases, so 1.0 is faint. Baked into the shader, needs a restart.

ssao_power

Double

1.0

Exponent applied to the occlusion when it is generated. Above 1 keeps only the deep creases. Baked into the shader, needs a restart.

ssao_radius

Double

0.3

Sample radius in view space units at the camera, shrinking with distance. Used by SSAO and GTAO. Baked into the shader, needs a restart.

ssao_fadeEnd

Double

75.0

View distance where the occlusion has faded out completely. Used by SSAO and GTAO. Baked into the shader, needs a restart.

ssao_angleBias

Double

0.05

How far above the surface plane a sample has to be to count as an occluder, which keeps flat surfaces clean. SSAO only. Baked into the shader, needs a restart.

gtao_sliceCount

Long

2

Directions the GTAO horizon search runs in for each pixel.

gtao_stepCount

Long

6

Steps along each direction, on each side, for the GTAO horizon search.

Culling, LOD and Occlusion

Option

Type

Default

Description

performance_multiThreadedCulling

Boolean

True

Run visibility culling on worker threads.

LOD_levelDistances

FloatArray

4, 50, 100, 200

Where each LOD level is used, in meters, multiplied by the instance scale. Each level is generated as the coarsest simplification that stays inside its pixel limits seen from exactly this distance, so the triangle count is a result, not a setting. Every LOD_level* list must have the same length; an empty list means no LOD levels at all. Changing a distance regenerates that level only. See Level of Detail.

LOD_levelTriangleTargets

FloatArray

4, 80, 60, 40

Percent of the original triangles each level is hoped to keep. Only reported in the editor next to what was reached; it decides nothing, except for animated models, which can’t be rendered for a check and are built straight to these shares.

LOD_levelSurfacePixels

FloatArray

4, 4, 3, 4

Per level: how far the visible surface may move at the level’s distance, in pixels of the reference screen. A texture sliding a few texels counts here too. Negative switches the check off.

LOD_levelOutlinePixels

FloatArray

4, 4, 3, 4

Per level: how far the silhouette may move, in pixels of the reference screen. Negative switches the check off.

LOD_levelHolePixels

FloatArray

4, 2, 6, 8

Per level: how wide the widest hole may be, where something behind shows through, in pixels of the reference screen. Negative switches the check off.

LOD_levelTexturePixels

FloatArray

4, 8, 12, 16

Per level: how wide the widest patch may be where the UV jumped to another part of the texture, in pixels of the reference screen. Negative switches the check off.

LOD_levelNormalPixels

FloatArray

4, 8, 12, 16

Per level: how wide the widest patch may be whose shading changed past LOD_normalDeviation, in pixels of the reference screen. Negative switches the check off.

LOD_normalDeviation

Double

0.2

How far a normal may move before a pixel counts as damaged, as the length of the difference. That length is the most diffuse brightness can change under any light, so 0.05 is 5%. Changing it regenerates every level.

LOD_referenceHeight

Long

1080

Height in pixels of the screen LOD levels are judged for, together with LOD_referenceFov. The default is a low-end 1080p screen; the resolution of the machine doing the generation doesn’t matter. Changing it regenerates every level.

LOD_referenceFov

Double

60.0

Vertical field of view in degrees of the screen LOD levels are judged for. Changing it regenerates every level.

LOD_calibrate

Boolean

True

Generate and check each model’s LOD levels at load. Off generates nothing new: a model uses the levels its .limon sidecar or limonmodel already holds, otherwise only the original. This is what a Raspberry Pi build wants.

LOD_calibrateSearchSteps

Long

7

Bisection steps per level. Each step renders the model from 14 directions to measure it, so more steps cost load time and land on a slightly larger error.

LOD_calibrationMaxResolution

Long

2048

Largest image the check renders: twice the model’s real size on screen at the level’s distance. A big model seen close needs more and is checked at reduced precision, which the editor marks. Cost grows with the square of this. Changing it regenerates every level.

LOD_shadowWeldedLevels

Boolean

True

Build a second, position-welded copy of the coarse levels for shadow cameras. Welding drops normals and UVs, which a depth-only pass never samples, and roughly triples the reduction at the coarse end. Nothing that samples a texture ever picks one. Changing it regenerates every level of every source model; a limonmodel keeps the levels it was exported with until it is re-exported.

LOD_shadowWeldedFromLevel

Long

2

First level that gets a welded shadow copy. Shadows use the original and the levels before this one as they are. Same regeneration rules as LOD_shadowWeldedLevels.

LOD_switchHysteresis

Double

0.15

How far past a switch distance an object has to move before switching back, as a fraction. Stops an object sitting on a threshold from flipping every frame.

LOD_forceLevel

Long

-1

Forces every model to this LOD level, so one level can be inspected everywhere it would appear. -1 selects levels normally.

LOD_skipRenderDistance

Double

50.0

Distance at which the engine may start skipping rendering of an object (with LOD_skipRenderSize). Objects closer than this are never skipped by size.

LOD_skipRenderSize

Double

0.075

On-screen size (fraction) below which distant objects past LOD_skipRenderDistance are skipped.

LOD_maxSkipRenderSize

Double

3

World-space size (bounding box width or height) at or above which an object is never skipped regardless of distance, so large geometry such as ground and walls doesn’t disappear at range.

occlusion_enabled

Boolean

True

Enable software occlusion culling for the player camera. Can be toggled at runtime from the editor.

SplitModelToMeshCount

Long

10

Models with more meshes than this get occlusion tested per mesh instead of per model. A map imported as one model is better served by the map converter, which turns it into separate objects.

occlusion_renderWidth

Long

512

Software-rasterized depth buffer width (must be a multiple of 8).

occlusion_renderHeight

Long

256

Software-rasterized depth buffer height (must be a multiple of 8).

occlusion_occluderSizePerspective

Double

0.1

On-screen size threshold for an object to be treated as an occluder for perspective cameras (1 = full coverage).

occlusion_occluderSizeOrthographic

Double

0.01

Same threshold for orthographic (shadow) cameras; optimal value is much lower than for perspective.

occlusion_bakeLodLevel

Long

0

Which LOD of a mesh occludes. Level 0 is the full mesh and the most accurate; level 2 rasterizes about 40% faster but over culls more, mostly on ground pieces. A mesh with fewer levels uses its coarsest one. A model loaded from a source file bakes only this level, so changing the value needs a reload; a limonmodel carries every level and switches immediately.

occlusion_occluderSizeByGroup

Boolean

True

A model in a model group becomes an occluder when the box of its nearest group passes the occluder size, instead of its own box. Turn it off to select occluders from each model individually.

occlusion_occluderGroupMemberMinFraction

Double

0.1

With occlusion_occluderSizeByGroup, a member still has to cover this fraction of the occluder size itself, so small props in a big group are not rasterized. 1 gives grouped models the same rule as ungrouped ones.

occlusion_debugReverse

Boolean

False

Debug view: the player camera draws only what occlusion culling removed. Needs occlusion_enabled. See Render Debugging.

occlusion_debugOverlayOpacity

Double

0.25

With occlusion_debugReverse, the meshes that passed culling are drawn over the occluded ones with this opacity. 0 hides them, 1 draws them as normal.

AI Navigation Grid

These options shape the navigation grid. The defaults suit a human sized actor. For smaller or larger actors, change them together: the probe size, the floating height and the step height all describe the same actor. The grid is generated at world load when no saved grid exists, so changing an option needs the grid to be generated and saved again to take effect.

Spacing, step height and floating height are saved with the grid. The rest only matter while it is generated. Generation is refused, with an error in the log and no grid, if spacing, floating height, step height or a probe size is not above zero, if the probe is narrower than the spacing, or if the probe bottom would be inside the ground: the floating height has to be more than half the probe height.

Option

Type

Default

Description

ai_gridThreads

Long

-1

Threads that generate the grid. -1 uses all the hardware threads, 1 generates on the calling thread. The grid is the same for every value.

ai_gridChunkSize

Long

4

How many consecutive nodes a generation thread takes at a time. Small chunks balance the threads better, big ones keep each thread on one patch of geometry. Ignored with one thread.

ai_gridProbeShape

String

box

Shape that has to fit at every node: box or capsule. A node where the shape touches something that blocks is not walkable. Box sizes and capsule sizes below are separate settings, only the chosen shape’s are used.

ai_gridSpacing

Double

1.0

Distance between neighbour nodes in meters. Halving it gives about four times the nodes. Saved with the grid. The probe has to be at least this wide.

ai_gridFloatingHeight

Double

2.0

How high above the ground a node sits, in meters. Route points are at this height, so an actor compares them against its position plus this offset. Saved with the grid. Also used for worlds that have no grid.

ai_gridStepHeight

Double

1.0

How much the ground height can differ between two neighbour nodes for them to link, in meters. The same going up and going down, a link has no direction. Saved with the grid.

ai_gridBoxHalfExtentXZ

Double

0.5137

Half the width and depth of the box probe. Not round on purpose, a surface exactly on a face of the box is a coin flip.

ai_gridBoxHalfHeight

Double

1.0513

Half the height of the box probe. The box is centered on the node, so its bottom is the floating height minus this above the ground.

ai_gridCapsuleRadius

Double

0.71

Radius of the capsule probe.

ai_gridCapsuleHeight

Double

1.4

Height of the straight part of the capsule probe, without the two caps.

Debugging and Profiling

Option

Type

Default

Description

debug_renderInformations

Boolean

True

Show the on-screen logger overlay and tris/lines/FPS counters.

debug_drawLines

Boolean

False

Draw the engine’s own debug lines - shadow cascade frustums and ray cast results. Toggled at runtime with F4. Lines drawn through the API and the editor’s object visualisations are not affected by it and render regardless.

debug_drawBufferSize

Long

1000

Vertex buffer capacity for debug line drawing. Accumulated lines are flushed to the GPU when it fills.

debug_aiGridDrawRadius

Long

50

The Debug player draws the navigation grid only this many cells around itself, a whole map worth of lines is too slow to render.

profiler_enableServer

Boolean

True

Enable the embedded Tracy profiling server (flame graph visible in the editor).

profiler_enableTracing

Boolean

True

Master switch for profiler zones. When off, none of the profiler_trace* groups below are recorded. Toggled live from the editor profiler window.

profiler_traceSimulation

Boolean

True

Record simulation (tick) zones. Only applies while profiler_enableTracing is on; toggled live from the editor profiler window.

profiler_traceVisibility

Boolean

True

Record visibility and culling zones. Only applies while profiler_enableTracing is on; toggled live from the editor profiler window.

profiler_traceRendering

Boolean

True

Record CPU-side rendering zones. Only applies while profiler_enableTracing is on; toggled live from the editor profiler window.

profiler_traceGpuRendering

Boolean

True

Record GPU rendering zones. Only applies while profiler_enableTracing is on; toggled live from the editor profiler window.

debug_fpsWindowMs

Long

500

Time window in milliseconds over which the FPS and frame-time statistics in the profiler window are averaged. Valid range 50 to 10000; a value outside it logs a warning and falls back to 500.

occlusion_renderDump

Boolean

False

Dump the software-rasterized depth buffer to a PPM file (debug only).

occlusion_renderDumpFrequency

Long

300

How often (in frames) to dump the software depth buffer when dumping is enabled.

See also