Skip to content

Settings Renderer Advanced

RenanQueiroz edited this page Nov 26, 2026 · 27 revisions

Settings Renderer Advanced

Cvars of the two renderer implementations. Most are diagnostics, probes and tuning switches for development; none has a pause menu row except where the "Where" column says so. The main reference is Settings Reference.

Group Cvars
Plume renderer, src/gpu 498
Legacy native runtime, src/native_gfx 121

The renderer (NATIVE, the Plume renderer, or XENIA) is not chosen in the pause menu or the launcher: it is the SDK's gpu.driver, larecomp by default, and the XENIA renderer is the hidden compatibility renderer (see Settings Reference). mcla_gpu and mcla_native_gfx_nocp, which chose it in 0.10, are removed and ignored with a note in the log. The graphics API is not chosen in the menu either: the launcher's Troubleshooting section sets it, and --graphics_backend=auto|d3d12|vulkan works on the command line. The legacy runtime is no longer offered at all, and the 0.11 build does not contain it (the CMake option LARECOMP_NATIVE_GFX_LEGACY is off: it was not ported); a larecomp.toml that still selects it shows as XENIA (src/mc_engine/menus/pause_menu.cpp). Its cvars are listed because they are still registered, so an old file keeps loading. Rows marked "Debug only." are tagged debug-only; see Settings Reference.

Table columns are described in Settings Reference.

Plume renderer (mcla_gpu*)

Ray traced car effects

CAR SELF-REFLECTIONS lets your car's paint reflect its own body. Turn on CAR SELF-REFLECTIONS RT for reflections of the car's shape and nearby vehicles, including racers, traffic and parked cars. CITY IN CAR PAINT RT adds reflections of the street and buildings.

CAR OCCLUSION RT adds short ray traced shadows around cars. OCCLUSION darkens areas such as wheel wells and the ground under cars. SUN adds shadows from the sun. BOTH enables both effects. It needs ambient occlusion or contact shadows, and ENHANCED RT selects BOTH.

These effects need DirectX Raytracing 1.1 on Direct3D 12 or ray queries on Vulkan. The log's [gpu] car ray tracing: line reports support. The [gpu] ray tracing tier: line reports the tier used for the preset recommendation.

Ray traced city (shadows, reflections, bounce light)

These rows use the ray tracing data that setup or the game builds from your game files. Where the game is still preparing data, some rows can show BUILDING DATA. The log and the row label give the reason if an effect cannot start.

Row What it does
SUN SHADOWS RT Adds soft sun shadows from buildings and cars, including nearby traffic. Vehicles can receive city shadows. Turn on CONTACT SHADOWS to use it.
CITY IN CAR PAINT RT Reflects nearby streets and buildings in car paint. Turn on CAR SELF-REFLECTIONS RT to use it.
BOUNCE LIGHT RT Carries reflected light from the city's geometry into shaded areas. Screen-space BOUNCE LIGHT fills in while the RT effect is unavailable. BOUNCE STRENGTH adjusts both. (VRAM) means the selected RT level is under memory pressure.
SURFACE REFLECTIONS RT Fills gaps in surface reflections with ray tracing, including detail outside the frame. Turn on SURFACE REFLECTIONS to use it. ULTRA traces more of the picture and reaches farther than HIGH.

The city's files are in cache/shaders/city by default. Use --build_city_pack, --build_city_hit or --check_city_hit to prepare or check them by hand. See Launch actions that do a job and close.

Sun shadows and surface reflections skip rays that cannot help the picture. Settled bounce light farther from the camera is reused between updates.

Ray traced ambient occlusion

AMBIENT OCCLUSION / RT has one screen-space level (ON) and a ray traced level (RT). RT can darken kerbs, wall bases and areas under cars even when the geometry blocking the light is outside the frame. Screen-space occlusion fills in while RT is unavailable. OCCLUSION STRENGTH adjusts the amount.

Reflections on surfaces

SURFACE REFLECTIONS adds reflections of cars, lights and scenery to wet roads, glass, metal and other glossy surfaces. ENHANCED selects HIGH and ENHANCED RT selects ULTRA. When a reflection leaves the screen, the game can blend in the available ray traced, planar or environment reflection. The environment reflection can fill gaps even between updates to the map.

PLANAR REFLECTION DETAIL sets the sharpness of the game's reflection on roads and other planar surfaces. PAINT REFLECTION DETAIL sets the sharpness of the environment reflected in the car's paint, windows and trim. The game darkens fallback reflections where light is blocked. This also applies to environment reflections on customizable car paint. In the rain, reflected lamp glows have fewer pink and green fringes.

Side mirrors

GRAPHICS > REFLECTIONS > MIRRORS switches the shared rear view on or off. With it on, side mirrors and the cabin rear-view mirror show the road behind you. The cabin mirror shows the view through the car's rear window. ENHANCED and ENHANCED RT turn MIRRORS on.

The optional HUD rear view is under GAMEPLAY > CAMERA > REAR VIEW. It shares the view and hides while a working cabin mirror is visible. It can still appear on cars without one. The shared view refreshes at 30 Hz and updates immediately on camera cuts.

Older SIDE MIRRORS and RT SIDE MIRRORS choices are carried into MIRRORS. If both preferences were saved, SIDE MIRRORS takes precedence.

Denoiser (DLSS Ray Reconstruction and AMD FSR Ray Regeneration)

GRAPHICS > DISPLAY offers the vendor denoiser supported by your card. It defaults to ON where the hardware, driver and files support it. A saved choice takes precedence. OFF uses LARecomp's denoisers.

  • DLSS RAY RECONSTRUCTION appears on GeForce RTX. It requires DLSS upscaling and the sl.dlss_d.dll and nvngx_dlssd.dll files. It can clean reflections, ray traced bounce light and ray traced ambient occlusion while taking over upscaling from DLSS Super Resolution. The game uses Super Resolution while preparing the context and for frames Ray Reconstruction cannot take, such as the garage, map and cutscenes. Turning it on can show RESTART if Streamline started without the plugin.
  • AMD FSR RAY REGENERATION appears on Radeon RX 9000 on Windows 11. It needs Direct3D 12, a supported driver and amd_fidelityfx_loader_dx12.dll and amd_fidelityfx_denoiser_dx12.dll. It can filter SURFACE REFLECTIONS, SURFACE REFLECTIONS RT and BOUNCE LIGHT RT with or without upscaling. The toggle applies live.

The labels shorten to DLSS RR or RAY REGEN when they show a status. APPLYING means the context is being prepared. NOT NEEDED means the current effects do not use the vendor denoiser. See Troubleshooting for the other statuses.

For comparisons, mcla_gpu_denoiser defaults to row and follows the toggle. The debug values rr and ours force the vendor or LARecomp setting, and auto currently uses LARecomp's denoisers. The per-effect debug controls are in the table below.

Use a launch argument or environment variable to persist a debug override. See Getting Started for how the old file key migrates to the toggle.

Noise in the effects

Lighting and reflections vary their samples from frame to frame to avoid fixed patterns on roads and shadows. LARecomp's filters smooth noise in ray traced reflections, shadows, ambient occlusion and bounce light when a vendor denoiser is inactive.

Testers can compare the filters using RT DENOISE V2 in DEBUG > RENDERER FIXES and the noise switches under DEBUG > PICTURE FIXES.

Headlights and light shadows

HEADLIGHTS lets vehicle lamps light the road. LOCAL LIGHT SHADOWS adds shadows from headlights. MEDIUM covers your car and the nearest other car. HIGH gives each of your headlights its own shadow. ULTRA also covers the next nearest car and gives each headlight its own shadow.

LOCAL LIGHT SHADOWS RT adds ray traced shadows from nearby headlights, street lamps and neon on supported hardware.

The game reuses steady car and lamp shadows and spends less work on distant lights. Higher SUN SHADOW DETAIL fits distant sun shadows to visible scenery and steadies them as the camera turns. SUN SHADOW FILTER on ULTRA skips extra work in areas that are already clearly lit or shaded. TRAFFIC SHADOWS skips cars too far from a shadowed area to affect it.

One list of lights, and the light pass

Behind the rows above the renderer keeps one description of every light of a frame (the light manager, src/gpu): the headlight rig's lights, the other lamps of every car (the 19 kinds of light point the game gives a car: head, brake, tail, turn, reverse and the police lights), the street lamps the volumetric light reads, and the lamps of a mod's lights.bin. The lights are picked by one rule (how much of a beam is in the view, the distance, and a place kept by the light that holds it), and every fade, linger and coast is counted in seconds, so a light fades in or out in the same time at 30, 60 or 144 frames a second (mcla_gpu_light_pick: unified, the default, or legacy, the first two pickers). All of these are debug settings and change no picture by themselves: mcla_gpu_lights_census writes a log line every N guest frames that says what was collected and how many checks found a difference, mcla_gpu_light_frame says which consumers read the manager's frame in place of their own producer (a bit mask: 1 the lit shaders' headlight block, 2 the volumetric light's lamps, headlights and shadow views, 4 the lights the headlight shadow maps are made from, 8 the shared shadow atlas; 0, the default, is all four reading their own), and mcla_gpu_light_pick_record writes the pickers' inputs to a file for a test to replay.

The light pass (deferred local lights) adds a light to the picture from the G-buffer's normal, albedo and lit weight and from the depth, with one draw for each light, in place of the lit shaders. It has no row for players; its rows are on the DEBUG menu's RENDERING page. LOCAL LIGHT PASS (mcla_gpu_local_lights, off by default) switches it on, and LIGHT PASS SOURCES (mcla_gpu_local_lights_sources) says which lights it adds: NONE, FRAME LIGHTS, POLICE BARS, HEAD LAMPS (the cars the headlight variant does not light), REAR LAMPS (brake, tail, turn and reverse), MOD LAMPS (a mod's lamps outside the mod's own grid), or CARS + MODS (police bars, head lamps, rear lamps and mod lamps together). mcla_gpu_local_lights_gain and mcla_gpu_local_lights_car_gain scale what it adds (the cars' colours and strengths are looks set by eye, not the game's units). HEADLIGHTS VIA (mcla_gpu_headlight_pass) chooses what lights the headlights: FORWARD (the default: the lit shaders' headlight variant, as the game has always had it), PASS (the light pass lights the headlights of the same cars with their shadows from the atlas; it also reaches the cars' paint and the pedestrians, which the variant leaves out, and the variant stays on the draws the pass does not light, such as the neon, a store sign and lamp glass; PASS FORWARD HEADLIGHT, mcla_gpu_headlight_pass_keep_forward, turns that off), or BOTH (the two added together, for comparing). HEADLIGHTS stays the master of all three. The pass adds its beams after the ambient occlusion, so the occlusion does not darken them as it darkens FORWARD's: with AMBIENT OCCLUSION on, the same beam looks a little brighter in PASS, most at the foot of a wall or under a car. The planes of the G-buffer exist only while an effect that reads them is on (see mcla_gpu_gbuffer).

Neon light

NEON UNDERGLOW lights the road, kerbs, walls and nearby cars in the colour of the underglow. LIGHT BOUNCE lets headlights, tail lights, neon, street lamps and decorative lights reflect off nearby surfaces and pick up their colour. Both switches are under GRAPHICS > LIGHTING AND SHADOWS.

Volumetric light

LIGHT BEAMS makes street lamps and headlights light the air. It offers OFF, MEDIUM, HIGH and ULTRA. Steady areas can reuse half their light samples from the previous frame. SUNBEAMS adjusts the strength of sunlight shafts, most visible near dawn and dusk. When both effects are on, the game can blend them together in one step.

Enabled lighting, light beams and surface reflections carry through pause and photo mode. City RT ambient occlusion and bounce light can run in those views when their data is ready. The garage can show indoor lighting, light beams and floor reflections.

MCLA/GPU (498)

Name Type Default Range / values Where Effect Source
mcla_gpu_ab_interleave bool false - toml / CLI Diagnostic (M6a): alternate the render thread's code under test between its old (A) and candidate (B) path every statistics window, and log each window's prepare time under its variant. Off: the candidate path always runs. Needs a restart. Debug only. src/gpu/ab.cpp
mcla_gpu_gpu_based_validation bool false - toml / CLI With mcla_gpu_debug_layer on D3D12, enable GPU-based validation before device creation. Diagnostic; requires the matching D3D12SDKLayers.dll and a restart. Needs a restart. Debug only. src/gpu/backend_d3d12.cpp
mcla_gpu_a2c_dither_all bool true - debug menu: PICTURE FIXES > ALPHA TO MASK FIX; toml / CLI Alpha to coverage: every draw takes the same offsets, so a depth pre-pass the game draws with the solid ones (2, 2, 2, 2) covers the samples its colour pass (dithered 3, 1, 0, 2) covers: the dithered with MSAA, the solid at 1 sample (a dither there is a fixed screen door on grass and fences). Off: each draw keeps the game's offsets, as the console and Xenia -- samples the pre-pass gave depth and the colour pass dropped keep the clear (white dots on fences and foliage, a white checkerboard on LOD cross-fades; with MSAA off, whole pixels). Hot reload. Debug only. src/gpu/constants.cpp
mcla_gpu_census_ps string "" - toml / CLI Diagnostic: up to 4 pixel shader identities, hex, comma separated. Per guest frame, the draws and vertices recorded with each; per report window, their distribution. Empty: off. Needs a restart. Debug only. src/gpu/draw_census.cpp
mcla_gpu_census_targets bool false - toml / CLI Diagnostic: per report window, every pass the frames drew into (its EDRAM targets) with its draws per frame and the pixel shaders that drew there. Needs a restart. Debug only. src/gpu/draw_census.cpp
mcla_gpu_edram_aliasing bool false - toml / CLI EDRAM inheritance detector (M5.2d): per EDRAM tile and aspect, the identity that wrote it last, reporting a draw or a resolve that would see another identity's bytes on the console -- which the host does not carry over. Off: none of its work is done. Needs a restart. Debug only. src/gpu/edram.cpp
mcla_gpu_coverage_queries bool false - toml / CLI With mcla_gpu_edram_aliasing: an occlusion query around each opaque draw the detector takes to cover its scissor, checking that it did. Costs GPU time, for checking a report. Off: no query pool is made, read or reset, and such takes go unchecked (listed once per pair). Needs a restart. Debug only. src/gpu/edram.cpp
mcla_gpu_cpu_timing bool false - debug menu: LOGGING > CPU TIMING; toml / CLI Log the mean and 95th percentile render-thread time per frame for each section. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_edram_capture uint32 0 - toml / CLI With mcla_gpu_edram_aliasing: a RenderDoc capture of the frame after the first report of each kind picked by these bits, 4 at most: 1 a pair met by a write that keeps or blends another identity's bytes, 2 a pair met by a read, 4 the first reader of inherited bytes of each kind. 0: none. Needs the game started under RenderDoc. Needs a restart. Debug only. src/gpu/edram.cpp
mcla_gpu_env_hold bool true - debug menu: RENDERER FIXES > ENVIRONMENT MAP HOLD; toml / CLI Reuse the car environment map until the view or lighting changes. Turn off to draw it every frame for comparison. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ghost_log_interval uint32 0 - debug menu: LOGGING > GHOST LOG EVERY; toml / CLI Diagnostic: log one live frame in every N with the 1280x720 scene clears and three-stripe resolves, plus all EDRAM target creations and growths. 0: off; 1: every frame. Hot reload for reproducing the frame ghost. Debug only. src/gpu/edram.cpp
mcla_gpu_msaa string 2 - menu: GRAPHICS > DISPLAY > MSAA; toml / CLI Multisample anti-aliasing. OFF, 2X, 4X or 8X. An active upscaler temporarily uses one sample. The selected value returns when upscaling is off. Applies live. src/gpu/edram.cpp
mcla_gpu_flicker_probe bool false - toml / CLI Diagnostic: read every guest frame back, as the window shows it, and log the blocks of 16x16 pixels that change for 1-5 frames and come back to exactly their old bytes (a flicker). Meant for a static scene such as the pause menu. Costs a copy of the image per frame on the GPU and about a millisecond of render-thread CPU. Needs a restart. Debug only. src/gpu/flicker_probe.cpp
mcla_gpu_flicker_probe_dumps uint32 12 - toml / CLI With mcla_gpu_flicker_probe: how many flicker events also write the frame before, the first frame of the blip and the frame after as mcla_flicker_<event>_<frame>_<what>.tga next to the executable (3.7 MB each at 1280x720). Needs a restart. Debug only. src/gpu/flicker_probe.cpp
mcla_gpu_trace_frame uint64 0 - toml / CLI Write a raw trace of the guest frame that begins after this many guest frames (0 = off) to mcla_gpu_trace_<frame>.txt next to the executable. A 6000-draw frame is tens of MB. Debug only. src/gpu/frame_trace.cpp
mcla_gpu_trace_count uint32 1 - toml / CLI How many consecutive frames mcla_gpu_trace_frame writes, one file each. Debug only. src/gpu/frame_trace.cpp
gpu_trace_next command n/a - toml / CLI Write a raw trace of the next guest frame (see mcla_gpu_trace_frame). Debug only. src/gpu/frame_trace.cpp
mcla_gpu_readable_cache bool true - toml / CLI Ask the guest heap whether a guest range is readable once a guest frame per 4 KiB page instead of once a draw: the capture checks about ten ranges a draw, and each check takes the heap's lock (about 0.2 ms a frame at 2,600 draws). The pages found readable are forgotten at every present. Needs a restart. Debug only. src/gpu/guest_capture.cpp
mcla_gpu_memory_census bool false - toml / CLI Watch every vertex and index range the executed draws read, the way the buffer cache will, and log every 600 frames what that cache would upload (24.21). Diagnostic: it write-protects guest pages. Needs a restart. Debug only. src/gpu/memory_census.cpp
mcla_gpu_mirror_census bool false - toml / CLI Count and time the rear-view mirror's draws in the renderer log. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_mirror_class bool false - debug menu: RENDERING > MIRROR DRAW CLASS; toml / CLI Debug, the cheap mirror: the rear view mirror's draws (the ones whose viewport is the mirror's rectangle, rearview_window_*) are their own class: they skip the per-draw work of the main view's effects (ambient occlusion, contact shadows, sun shafts, volumetric light, car reflections, the car dump and frame, the headlights, the light shadows), which would otherwise see a second camera's draws. The scene line of the log always counts them (mirror: N draws/frame), on or off. Live. Debug only. src/gpu/scene.cpp
mcla_gpu_mirror_glass bool false - toml / CLI Forces mirror glass detection for tests. MIRRORS enables it during regular play. Applies live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_mirror_overlay bool false - toml / CLI Forces the glass overlay for mirror tests. MIRRORS enables it during regular play. Applies live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_mirror_view int32 0 0 to 6 toml / CLI Forces a test size for the shared rear view. 0 follows MIRRORS. Values 1 to 6 select the production and test modes. Applies live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_mirror_view_t0 double 20.0 3.0 to 200.0 toml / CLI Debug, MIRROR-VIEW (perf/MIRROR-VIEW.md, section 2.3): the distance in metres beyond the mirror glass at which the glass overlay's lookup is exact (the glass is ahead of the eye the rear view is drawn from, so what is nearer or farther than this is shifted: 20 is the design's). Between 3 and 200. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_perf_markers bool false - debug menu: RENDERING > PERF MARKERS; toml / CLI Name the frame's phases in the command lists for GPU profilers: PIX events on D3D12, debug utils labels on Vulkan; how deep, mcla_gpu_perf_markers_level. Nsight GPU Trace's multi-pass metrics need them. Off: no label is recorded. Read when a frame starts. Debug only. src/gpu/perf_markers.cpp
mcla_gpu_perf_markers_level int32 1 - debug menu: RENDERING > PERF MARKERS LEVEL; toml / CLI How deep mcla_gpu_perf_markers names the frame. 0: Frame alone. 1: Frame and its phases (Scene, EndOfFrame, Present, Overlay) -- the same in every frame, what Nsight's multi-pass metrics need. 2: also a label per guest clear, resolve, composite and Lock write-back inside Scene; their count changes from frame to frame, so multi-pass metrics drop them. Debug only. src/gpu/perf_markers.cpp
mcla_gpu_pipeline_cache bool true - toml / CLI Keep the pipelines the game asked for across sessions (24.35, M5.3): their keys go to cache/mcla_gpu_pipelines_<backend>.bin beside the executable on exit, and are read back at start -- the other backend's file too, so what one API saw is ready in the other (24.40 V2). Off: nothing is read, recorded or written. Needs a restart. Debug only. src/gpu/pipelines.cpp
mcla_gpu_pipeline_warm bool true - debug menu: PERFORMANCE > PIPELINE WARMUP; toml / CLI Move costly pipelines that a draw had to wait for earlier in the next start's pipeline cache. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_vulkan_pipeline_cache bool true - toml / CLI Loads Plume's compiled Vulkan pipeline cache when the device opens and saves it after pipeline preparation and at shutdown. Turn off for timing comparisons with a fresh Vulkan cache. Needs a restart. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_aa string off - menu: GRAPHICS > DISPLAY > POST AA; toml / CLI Screen-space anti-aliasing. OFF, FXAA or SMAA. Applies live. src/gpu/post.cpp
mcla_gpu_fsr bool false - menu: GRAPHICS > DISPLAY > UPSCALING (FSR1); toml / CLI FSR1 on the present (M6c.1): when the window's letterbox is larger than the front buffer on both axes, EASU passes (at most 2x per axis each) up to it, then RCAS. Otherwise the bilinear present. Live. src/gpu/present.cpp
mcla_gpu_fsr_sharpness double 0.2 0.0 to 2.0 menu: GRAPHICS > DISPLAY > SHARPNESS; toml / CLI FSR1 RCAS sharpness reduction in stops: 0 sharpest, 2 softest (the SDK presenter's present_fsr_sharpness_reduction and its default). Live. src/gpu/present.cpp
mcla_gpu_fsr_max_passes int32 4 1 to 4 toml / CLI Most FSR1 EASU passes (each at most 2x per axis); a bilinear stretch finishes what they leave. The SDK presenter's present_fsr_max_upsampling_passes. Live. Debug only. src/gpu/present.cpp
mcla_gpu_resolution_scale double 0.0 - menu: GRAPHICS > DISPLAY > RENDER SCALE; toml / CLI Render scale: every render target that is an image of the screen (the scene, the UI, the post-processing sized from the screen) is this many times the guest's in each direction, from 0.5 to 3 in steps of 0.05 (0.75 = 960x540, 1.5 = 1920x1080, 2 = 2560x1440, 3 = 3840x2160 from 720p; other values go to the nearest step, and outside 0.5 to 3 to the nearer end). 0, the default: the screen's -- the window's 16:9 area over the game's 1280x720, followed while the game runs (fullscreen, a resized window): the picture is drawn at the size of the window ("Render Scale 100%" in the pause menu); above it is supersampling. Not used while a temporal upscaler (mcla_gpu_upscaler) runs: its output is always the screen's, and the scene is drawn at its mode's share of that. Not used either while mcla_gpu_fsr is on with a preset (mcla_gpu_fsr_preset). Live: the images are made again at the new scale at a frame boundary, once the value has stood for a moment (and, while an upscaler runs, once its context for the new sizes is ready); a scale whose images the card cannot make (video memory is short) is not made: the old one is kept, the pause menu's RENDER SCALE row says LIMITED and the log says so. The guest keeps seeing its own sizes. src/gpu/render_scale.cpp
mcla_gpu_fsr_preset string custom - menu: GRAPHICS > DISPLAY > RENDER SCALE (with UPSCALING: FSR1); toml / CLI With mcla_gpu_fsr on: the internal resolution scale is the screen's (the window's 16:9 area over the game's 1280x720, followed while the game runs) divided by an FSR1 quality ratio -- ultra_quality 1.3, quality 1.5, balanced 1.7, performance 2, ultra_performance 3 -- on the 0.05 grid and at least 0.5, and FSR1 upscales it to the window. custom: mcla_gpu_resolution_scale (by default the screen's, which leaves FSR1 nothing to upscale: pick a preset). With mcla_gpu_fsr off it is not used, nor while a temporal upscaler (mcla_gpu_upscaler) runs. Live, like mcla_gpu_resolution_scale. src/gpu/render_scale.cpp
mcla_gpu_vsync bool false - menu: GRAPHICS > DISPLAY > VSYNC; toml / CLI Present on vertical blank. Read every frame. src/gpu/renderer.cpp
mcla_gpu_pass_timing bool false - toml / CLI Measure GPU time per pass: a timestamp at every pass boundary (target change, resolve, clear, present, overlay), summed per pass and logged by cost with the frame statistics. A measurement for the performance work, off by default. Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_present_wait bool false - toml / CLI Pace presents with the swap chain's latency wait (DXGI waitable object / VK_KHR_present_wait) when the device has it. On D3D12 Plume then presents with sync interval 0 and the wait alone paces the frame, so measure before turning it on. Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_adapter string "" - toml / CLI Adapter name to create the device on. Empty: on D3D12 the adapter Windows' graphics setting for this app names, else the high-performance GPU; on Vulkan Plume picks, or the GPU graphics_backend auto chose Vulkan for. The emulated GPU (RENDERER: XENIA) runs on the same one unless d3d12_adapter or vulkan_device is set. Needs a restart. src/gpu/renderer.cpp
mcla_gpu_verify_constants bool false - toml / CLI Compare every 64-byte block of both constant banks on every draw, not only the blocks the guest's dirty masks name, and send (and count) any that changed without its dirty bit. Costs guest CPU per draw. Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_validate bool false - toml / CLI Run the milestone M3 validator on every record besides the replay: per-record counters and the mcla_gpu_validation_*.csv files next to the executable. Decodes every draw a second time on the render thread (3.5-7 ms/frame measured in M3). Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_batch_draws uint32 0 - toml / CLI Submit the guest frame's command list to the GPU every this many prepared draws, unfenced, and continue in a new list (0: one submission per guest frame, the default). For measuring submission batching. Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_present_release bool true - toml / CLI Release the guest's Swap as soon as the render thread has read the last guest memory a present needs (after the scene's end-of-frame work and the front buffer's texture), and before it submits the frame and presents. Without it the guest waits for the whole present, about 0.2 ms a frame at 240 FPS. Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_debug_layer bool false - toml / CLI Enable the D3D12 debug layer before the device exists and log its warnings and errors. Needs D3D12SDKLayers.dll from the same Agility SDK release as D3D12\D3D12Core.dll, placed next to it (the system's copy belongs to the OS runtime). Vulkan validation is a property of a Debug build of Plume and cannot be switched on here. Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_force_refusal bool false - toml / CLI A test of the box that offers the compatibility renderer: both graphics APIs are refused on purpose, as if the graphics card could not run the native renderer, so the game shows that box (with its Use the compatibility renderer button) and stops instead of starting. Read at start. Never saved; use it as a launch argument. Debug only. src/gpu/renderer.cpp
mcla_gpu_crash_diag string auto one of auto, on, off toml / CLI AUTO collects more GPU crash detail on the launch after device loss. ON always collects it. OFF keeps the basic report. Needs a restart. Debug only. src/settings/larecomp_app_settings.h
mcla_gpu_force_device_removal bool false - CLI Test device-loss reporting by stopping the Direct3D 12 graphics device. Restart the game afterwards. Debug only. src/settings/larecomp_app_settings.h
mcla_gpu_lock_dump bool false - toml / CLI Diagnostic: after a Lock write-back, every 8888 level the locked range covers is decoded from guest memory and written as mcla_gpu_lock_<serial>_<base>_<w>x<h>_L<level>.tga next to the executable (the vinyl's mip chain). Debug only. src/gpu/resolve.cpp
mcla_gpu_resolve_fill_half_pixel bool true - toml / CLI With mcla_gpu_resolution_scale above 1, a resolve of a scaled target reads its first host columns and rows -- the half-pixel gap no full-screen draw covers -- from the first one surely covered, as Xenia's resolve_resolution_scale_fill_half_pixel_offset does. Off: the gap keeps whatever was there, a 1-pixel line on the top and left edges. Debug only. src/gpu/resolve.cpp
mcla_gpu_resolve_layout_memo bool true - debug menu: RENDERER FIXES > RESOLVE LAYOUT CACHE; toml / CLI Reuse texture level layouts for resolve bookkeeping. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_resolve_memory_encode_delay uint32 2 - toml / CLI Frames a colour resolve's encode into the resolve memory (and that of a depth resolve into k_8_8_8_8) may wait. 0: every encode of a frame is recorded at its end. Debug only. src/gpu/resolve_memory.cpp
mcla_gpu_resolve_texture_copy bool true - toml / CLI Use a GPU texture copy for matching single-sample RGBA8 resolves that need no conversion. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_anisotropy string game - menu: GRAPHICS > IMAGE QUALITY > TEXTURE FILTERING; toml / CLI Anisotropic texture filtering. GAME, OFF, 2X, 4X, 8X or 16X. Applies live. src/gpu/samplers.cpp
mcla_ui_sharp bool true - debug menu: RENDERER FIXES > SHARP UI; toml / CLI Sharpens HUD and menu art when scaled up from 720p. Applies live. Debug only. src/gpu/ui_sharp.cpp
mcla_ui_minimap_scale bool true - debug menu: RENDERER FIXES > SHARP MINIMAP; toml / CLI Sharpens the radar, quick map and other map views from 1.25x render scale. Applies live. Debug only. src/gpu/side_view_ui_map.cpp
mcla_ui_sharp_strength double 1.0 0.0 to 2.0 debug menu: PICTURE FIXES > UI SHARP STRENGTH; toml / CLI Debug: how hard SHARP UI (mcla_ui_sharp) works. 1 is full Catmull-Rom on the colour and an alpha edge about one pixel wide; 0.5 is half of it; 2 doubles the edge gain (a harder edge, more aliasing). Live. Debug only. src/gpu/ui_sharp.cpp
mcla_ui_sharp_census bool false - debug menu: LOGGING > UI SHARPEN CENSUS; toml / CLI Debug: every 600 frames, log the textures the HUD and menus read (the draws after the scene is composed, the menus' render-to-texture views, and the frames that have no scene: loading, title, movies): the pixel shader, the texture's format, size, name and dictionary, the sampler's filters, the render scale of the target and how many reads were magnified. What SHARP UI is tuned from. Live. Debug only. src/gpu/ui_sharp.cpp
mcla_gpu_scene_profile bool false - toml / CLI Diagnostic (M6a): the render thread's time per stage of a draw (constant banks, state decode, shaders and layout, geometry, pipeline, constants, textures, upload, targets, draw), one line per window of 600 frames. Off: nothing is timed. Needs a restart. Debug only. src/gpu/scene.cpp
mcla_gpu_work_17oct bool true - toml / CLI On/off for all of the renderer work of 17/10/2026: the half-pixel fill of scaled resolves (mcla_gpu_resolve_fill_half_pixel), the depth bias times the scale (mcla_gpu_scale_depth_bias), the delayed colour encodes (mcla_gpu_resolve_memory_encode_delay) and the encode batch counters. Off: as before that day. Hot reload. Debug only. src/gpu/scene.cpp
mcla_gpu_scale_depth_bias bool true - toml / CLI With a resolution scale above 1 (M6b.3c): the slope-scaled depth bias times the scale of the draw's targets, as Xenia does -- a host pixel is 1/scale of the guest's. Off: the guest's factor unchanged (for A/B). Hot reload. Debug only. src/gpu/scene.cpp
mcla_gpu_census_scale bool false - toml / CLI Diagnostic (M6e.0): logs once per case each resolve product a draw at another resolution scale reads (with the fetch's filters) and each copy of an image of the screen that lands away from its source. Off: nothing is checked. Needs a restart. Debug only. src/gpu/scene.cpp
mcla_gpu_texture_dump bool false - debug menu: TOOLS > DUMP ALL TEXTURES; toml / CLI Write every texture the NATIVE renderer uploads to <mods>/textures_dump/<dictionary>/<name>__<hash>.dds, once per texture per session (F2 does it for one frame). Texture mods replace a texture by the hash at the end of the file name, from <mods>/<Mod>/textures_replace/; <mods> is modloader/, mods/ or models/. Debug only. src/gpu/textures.cpp
mcla_gpu_watch_base string "" - toml / CLI Diagnostic: a guest physical address in hex. Needs a restart. Debug only. src/gpu/watch.cpp
mcla_gpu_watch_size string 400000 - toml / CLI Diagnostic: the length, in hex, of mcla_gpu_watch_base's range. Needs a restart. Debug only. src/gpu/watch.cpp
mcla_gpu_watch_capture uint32 1 - toml / CLI Diagnostic, with mcla_gpu_watch_base: a RenderDoc capture of the frame after 1 = the first decode of the range from the resolve memory, 2 = the first product over it deactivated by another resolve. 0: none. Needs the game started under RenderDoc. Needs a restart. Debug only. src/gpu/watch.cpp
build_city_hit bool false - toml / CLI Builds the city hit data (the hit file and the texture file beside the city pack: the city's surfaces and pictures, for the ray traced effects that read them) from your game files and closes, without starting the game: no window, no graphics. It needs the city pack (build_city_pack first, or both on one command line). The launcher runs this in its setup on a PC whose graphics card can ray trace, so that those effects are ready at the first start; the game builds it itself in the background when it is missing and an effect that reads it is on. Progress is printed to the console like build_city_pack's; the log is logs/city_hit_build.txt. Exit code 0 when the hit data is in place. Needs a restart. Debug only. src/bootprogress/larecomp_city_pack.cpp
build_city_hit_force bool false - toml / CLI With build_city_hit: build even when the hit data in place is current. Needs a restart. Debug only. src/bootprogress/larecomp_city_pack.cpp
build_city_pack bool false - toml / CLI Builds the city pack (the city's geometry, for ray traced shadows) from your game files and closes, without starting the game: no window, no graphics. The launcher runs this in its setup on a PC whose graphics card can ray trace, so that ray traced shadows are ready at the first start; the game builds it itself in the background when it is missing and ray traced shadows are on. Progress is printed to the console; the log is logs/city_pack_build.txt. Exit code 0 when the pack is in place. Needs a restart. Debug only. src/bootprogress/larecomp_city_pack.cpp
build_city_pack_force bool false - toml / CLI With build_city_pack: build even when the pack in place is current. Needs a restart. Debug only. src/bootprogress/larecomp_city_pack.cpp
build_shader_packs bool false - toml / CLI Builds the shader packs from your game files and closes, without starting the game: no window, no graphics. The launcher runs this at the end of its setup so that the first start has nothing to build. Progress is printed to the console; the log is logs/shader_build.txt. Exit code 0 when the packs are in place. Needs a restart. Debug only. src/bootprogress/larecomp_shader_build.cpp
build_shader_packs_force bool false - toml / CLI With build_shader_packs: build even when the packs in place are current. Needs a restart. Debug only. src/bootprogress/larecomp_shader_build.cpp
check_city_hit bool false - toml / CLI Checks the city hit data and closes, without starting the game: is it in place and current for your game files and the city pack beside it? Stat only (a moment): exit code 0 and the result 'up to date', or 1 and 'not current' with the reason. With build_city_hit, the check runs after the build. Progress is printed to the console like build_city_pack's; the log is logs/city_hit_check.txt. Needs a restart. Debug only. src/bootprogress/larecomp_city_pack.cpp
check_city_hit_deep bool false - toml / CLI With check_city_hit: read the files back whole instead of checking the stamp (seconds, not a moment): the city pack, the hit file against it, and every picture of the texture file. Exit code 0 when all are whole, 1 with the counts of the problems when not. Needs a restart. Debug only. src/bootprogress/larecomp_city_pack.cpp
mcla_compare_effect string bounce one of bounce, contact, shafts, occlusion, filter, selfrefl, bloom toml / CLI Developer tool (builds with LARECOMP_DEV_TOOLS only): which graphics effect the compare key flips off and on, to see what it does: bounce (the bounce light, the default), contact (contact shadows), shafts (sun shafts), occlusion (ambient occlusion), filter (the sun shadow filter), selfrefl (the car's reflection of its own body) or bloom (the glow size fix: the select key does not walk to it, set it here or on the command line). The select key is F12 and the compare key F1 until they are rebound in the key bindings of F4 (bind_mcla_compare_next, bind_mcla_compare). F12 selects the next effect and shows which one in a label at the top of the screen; F1 shows the selected effect the other way than your setting has it, the label says how, and the next press puts your setting back. The flip is never saved, and it is dropped when the setting it flips is changed or this one is. Live. Debug only. src/mc_engine/display/effect_compare.cpp
mcla_compare_label_seconds double 1.5 0.5 to 30.0 toml / CLI Diagnostic: how long the compare key's label stays up before it fades out (about 0.35 s more), 0.5 to 30. A test run takes its pictures a second after the press and sets it higher. Live. Debug only. src/mc_engine/display/effect_compare.cpp
mcla_gpu_ao string auto one of auto, off, on, rt, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > AMBIENT OCCLUSION / RT; toml / CLI OFF, ON or RT. ON uses screen-space depth. RT can also use nearby geometry outside the frame. Legacy High and Ultra use the ON level. Applies live. src/gpu/rtao_setting.h
mcla_gpu_ao_blue_noise bool true - debug menu: PICTURE FIXES > BLUE NOISE AO; toml / CLI Diagnostic: the ambient occlusion's, the bounce light's and the contact shadows' sampling noise (which direction and how far along it each pixel looks) comes from a blue noise tile that has no lattice in it, so what the blur and the average over frames leave of the noise is a fine grain no pattern can be read from. False: the first version's interleaved gradient noise, a diagonal lattice whose leftovers show as thin diagonal lines on roads and kerbs, for comparing. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_car_reach double 0.4 0.0 to 1.0 toml / CLI Diagnostic: how far what a car blocks of the sky light reaches on the road and the other things round it, as a share of the occlusion's radius (0.4 of the default 3 m is 1.2 m: the dark line where the tyres meet the road and the car's footprint, not a halo). The car's own body is darkened with the whole radius as before. 1 (or 0): a car blocks the sky light as far as a wall does. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_census int32 0 0 to 100000 toml / CLI Diagnostic: every Nth guest frame (and the first three frames with the main view), one block of log lines with the main view's draws around the game's mid-scene depth resolve, that resolve (where it is, how big, inside EndTiling or not), the light constants the occlusion uses (PS c26 ambient, PS c39 sun colour, VS c16 sun direction), the depth clear value, the lens the game's motion blur draw gives, what the history did and a statistic of the linear depth (read back from the graphics card, so the first three frames and every Nth one run the depth passes even with the occlusion off). Frames where the main view does not have exactly one qualifying resolve are logged as they come (the first 40). 0: off. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_cheap bool true - debug menu: RENDERER FIXES > COMBINED AO FILTER; toml / CLI use the combined screen-space AO filter and rotating half-size samples. Off uses the original passes. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ao_fade_end double 160.0 20.0 to 1000.0 debug menu: RENDERING > AO FADE END; toml / CLI The distance, in the game's world units (about metres), where ambient occlusion has faded out entirely; it starts to fade at half of it. Fog, rain and particles are not darkened either way: they are drawn over the picture afterwards. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_fast_math bool true - toml / CLI Diagnostic: the bounce light's sectors take the angle of each sample's horizon from a polynomial (Abramowitz and Stegun's, 6.8e-5 radians at the most, 0.0014 of one of the 32 sectors) in place of the hardware's acos, which costs less; every other saving of the occlusion's and the bounce light's shader passes is the same maths to a rounding error and has no switch. False: the hardware's acos (the shader as it was in that one respect), for comparing the cost and the picture. Live; the first frame after the change makes the other pipeline on the render thread (a debug switch: a hitch of tens of milliseconds, once). Debug only. src/gpu/ao.cpp
mcla_gpu_ao_gbuffer_normals bool false - toml / CLI Diagnostic (G-buffer, GB-E; off by default since 2026-11-20: the G-buffer costs 0.04 to 0.2 ms of the graphics card for a small change to these passes, so it stays off until a feature that needs it lands): the ambient occlusion, the contact shadows and the bounce light take each pixel's surface normal from the G-buffer (the world normal of the surfaces whose shader has the G-buffer variant, turned into view space) in place of working it out from the depth's neighbours in every pass: no depth edge bends it, the passes read one image that a normal pass makes once a frame, and the bounce light's facing test reads the sample's normal instead of a second depth. A pixel the G-buffer holds no data for (impostors, billboards, the shaders no family covers yet) takes the depth's normal as before, and so does a frame without the plane (the pause menu's world, the garage, the map, a cutscene). While it is on and one of those effects is, the effects ask the G-buffer for its normal plane, so the main view's draws also write it (a small cost, paid only then). False: no plane is asked for and every pass works out the normal from the depth, the picture as it was (the A/B). Live; the first frame after the change makes the normal pass's pipeline in the background. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_half_above_1080 bool true - toml / CLI Diagnostic: above 1080 lines of render height (1440p, 4K, an upscaler's larger render size) the ambient occlusion's passes (depth chain, visibility, blur, history) run at half the picture's size, 720 lines for 1440p and 1080 for 4K, and the apply pass's depth-aware upsample puts the result back; 1080 lines and below are as they were. The occlusion's own 18 samples a pixel make a signal that has no more detail than that, so the picture is the same to within a thin edge and the passes cost a quarter. The contact shadows keep the picture's size (their own depth and images). False: every size at the size the quality says (the render size on ultra). With the bounce light on, mcla_gpu_ssgi_half decides instead (the bounce light's images give the visibility too). Live; the first frame after the change makes the images again. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_history int32 12 1 to 64 debug menu: RENDERING > AO HISTORY; toml / CLI Diagnostic: how many frames ambient occlusion averages to take its sampling noise out, 1 to 64. Each frame's occlusion is found again in the next by the camera's motion and kept only where it is the same surface; more frames is smoother and slower to follow a moving shadow (a car's), fewer is noisier. 1: no averaging (two blur passes on every frame instead). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_intensity string default one of light, default, strong, max menu: GRAPHICS > LIGHTING AND SHADOWS > OCCLUSION STRENGTH; toml / CLI Levels 1 to 4 control how strongly ambient occlusion darkens nearby surfaces. Applies live. src/gpu/ao.cpp
mcla_gpu_ao_paint double 0.3125 0.0625 to 1.0 toml / CLI Diagnostic: how much of ambient occlusion a car's glossy paint takes. The colour of dark paint is nearly all the reflection of the sky, and a reflection is blocked only where the mirror ray is, not by the share of the sky a part cannot see, so a part that is partly covered (the uprights of a wing and the lid under it) lost most of its colour. On a car's pixels the occlusion's value (the image's, already raised to the look's power) is raised to this power: 1 darkens the paint like the world, smaller keeps more of its colour. The default, 0.3125, takes the default look's power (3.6) out again, so the paint is darkened by the share of the sky a part can see. Rounded to sixteenths, 1/16 to 1. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_rt string off one of auto, off, ao, contact, both menu: GRAPHICS > LIGHTING AND SHADOWS > CAR OCCLUSION RT; toml / CLI Trace short shadows around cars. OFF, OCCLUSION, SUN or BOTH. Needs ambient occlusion or contact shadows and ray tracing support. Applies live. src/gpu/car_rt_ao.cpp
mcla_gpu_ao_rt_length double 0.6 0.2 to 2.0 toml / CLI Diagnostic: how far the ray traced occlusion's rays reach, in the game's world units (about metres): what your car blocks within it darkens the pixel, less the farther it is, nothing at the reach. A longer reach darkens more of the road round the car. Live. Debug only. src/gpu/car_rt_ao.cpp
mcla_gpu_ao_rt_rays int32 0 0 to 4 toml / CLI Diagnostic: the ray traced occlusion's rays a pixel, 1 to 4; 0 (the default) is the occlusion's level (high 2, ultra 4). The occlusion's own history averages the frames, so a few rays a frame are enough. Live. Debug only. src/gpu/car_rt_ao.cpp
mcla_gpu_ao_stable bool true - toml / CLI Diagnostic: the occlusion's noise stays as small in a big picture as in a small one: its blur reaches as far in the picture at 4K (7x7 pixels) as it does at 720 lines (3x3), the wide blur of the pixels that have no history follows, and the noise's shift from frame to frame is a lattice of 13 frames that any 12 consecutive frames cover evenly. The bounce light's a-trous filter has more iterations in a bigger picture and its history is clipped to a wider box. False: the first version's 3x3 blur and 5x5 wide blur at every size, its additive recurrence, its 2 a-trous iterations and its clip of 1.25 deviations, for comparing. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ao_view int32 0 0 to 8 debug menu: RENDERING > AO VIEW; toml / CLI Diagnostic: shows a stage of the ambient occlusion as a grey picture instead of applying it (only while it is on): 1 the factor the picture is multiplied by (white: none), 2 the visibility, 3 the share of the light that is ambient, 4 the surface normals, 5 the distance (a log scale), 6 how much of the last frames each pixel kept (white: all it can, black: none, so it is new, a vehicle whose own motion is not known, or has no history yet; the history itself goes on as usual), 7 the occlusion's own part of the factor (the visibility with the ambient share, the strength and the distance fade; white: none), 8 the pixels it takes for vehicles (white). 0: off. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_atmosphere_menu_views bool true - hidden DEBUG menu; toml / CLI Apply volumetric light in pause, photo mode and the garage. Allow the world light to place sun shafts in pause and photo mode. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_atmosphere_merge bool true - hidden DEBUG menu; toml / CLI Use one blend when volumetric light and sun shafts share a scene target. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_batch_constant_banks bool true - debug menu: RENDERER FIXES > BATCH CONSTANT BANKS; toml / CLI Reserve space together for dirty vertex and pixel constant banks. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_bloom_scale bool true - debug menu: PICTURE FIXES > BLOOM SIZE FIX; toml / CLI Fix: the glow of lights (the bloom) keeps the size the game gives it at render scales above 1x (a higher render resolution, or an upscaler to a 1080p or 4K output). The game blurs the bloom with taps a fixed number of pixels apart; at 2x or 3x the same taps reach half or a third as far on the screen, so a window's glow shrinks and the glow of a lamp or a tail light disappears. This makes each tap cover the pixels it stands for, so the glow looks as it does at 1x. At a render scale of 1x the picture is the same either way. Off: the game's own taps. Live. Debug only. src/gpu/pipelines.cpp
mcla_gpu_cabin_sun_shadow int32 2 - debug menu: PICTURE FIXES > CABIN SUN FIX; toml / CLI Diagnostic: cockpit sun shadow. 0 keeps original visibility, 1 exempts the car from its own screen-space blockers, 2 exempts its shadow map, 3 exempts its RT sun ray from its own body and tyres, 4 restores part of the combined sun loss. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_chrome_occlusion bool true - debug menu: PICTURE FIXES > CAR CHROME FIX; toml / CLI Fix: the chrome of the player's car (the tailpipes, the rims, the badges and trim) is not lit by what the car's own body covers. The game's chrome shader looks up the sky in the environment map and adds the sky's ambient colour wherever the surface points, and nothing in it knows the bumper over a tailpipe, so the tips, which sit 2 to 7 cm under and behind the parts that cover them, glow as if lit from above. This marches two short rays from each chrome pixel through the picture of the car from the frame before (the car self-reflection's image): one along the reflection, one towards the sky, and darkens the reflection and the ambient where they hit a part of the car, by up to 90 percent. It runs wherever the car self-reflection runs (mcla_gpu_car_selfrefl) and needs the shader pack's variant file. Off: the game's own chrome. Live; the first time it shows, the graphics card builds its shader (a short stutter). Debug only. src/gpu/pipelines.cpp
mcla_gpu_car_chrome_rt_others bool true - toml / CLI Diagnostic: where the graphics card can ray trace and the car self-reflection runs, the chrome of the OTHER cars (opponents, traffic: the tailpipes, badges and trim) is darkened under their own bodies from their real shape, as your own car's chrome is (mcla_gpu_car_chrome_occlusion): two short rays a chrome pixel against the cars in the ray traced scene (mcla_gpu_car_rt_cars), traced where the picture of the frame before shows the chrome. Off: their chrome takes the marched version (the picture of the car of the frame before), as before this. Needs mcla_gpu_car_chrome_occlusion and the other cars in the scene. Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_dump uint64 0 - toml / CLI Debug: takes the triangles of every car the game draws in ONE frame out of the game's memory, puts them in world space with each draw's own matrices and writes them to car_dump_<frame>.obj next to the executable (one group per draw, for the car chosen by mcla_gpu_car_dump_id), with a census of the car draws (how many draws, vertices and triangles each car has and which shaders draw it) in the log under [car dump]. 0 (the default) is off. A number N dumps the first frame at or after the game's frame N that has a car in it. With the car self-reflections on (mcla_gpu_car_selfrefl_test=1) it also checks the triangles against the picture of the cars the self-reflections keep, and logs how much of the car they cover and how close their distances are. Park the car, switch the upscaler off and use the game's own view (not the garage or the pause menu). A new value dumps again. It costs nothing while it is off and one slow frame when it dumps. Debug only. src/gpu/car_dump.cpp
mcla_gpu_car_dump_id int32 0 0 to 23 toml / CLI Debug: which car mcla_gpu_car_dump writes to its OBJ file and checks first, by the number the game stamps into the stencil for it (1 to 23, handed out in drawing order each frame, so a car has no fixed number). 0 (the default) takes the player's car: the one nearest to the vehicle the player drives in the game's memory, else the one with paint draws nearest to the camera, else the one with the most body draws; the log says which. Live. Debug only. src/gpu/car_dump.cpp
mcla_gpu_car_frame_log bool false - toml / CLI Debug: logs one line under [car frame] whenever the player's car changes in the draw list the car effects share (its stencil ID, how many draws it has, how many are rigid parts and how many skinned): what was found, how it was found and what was left out. With this on the list is collected in every frame, whether a car effect (the car shadow map, the car ray tracing) asks for it or not, so the line shows by itself. A second line, 'keys', says when the car's meshes get new keys (a new key is a mesh the car effects read or build again): a few seconds after the car appears there should be none in a parked car; at most one line every few seconds. Never saved. Live. Debug only. src/gpu/car_frame.cpp
mcla_gpu_car_history_tiles bool true - hidden DEBUG menu; toml / CLI Reuse the same vehicle coverage for car reflection history and RT paint. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_model_walk int32 0 0 to 3600 toml / CLI Debug: every N-th guest frame (0 = off) reads the model data of every car the game has (the player's vehicle, the renderer's list of vehicles, every vehicle the game's draw call is made for: the cars the camera does not see too) straight from guest memory, down to each geometry's vertex and index buffer (address, stride, declaration, count, position element), bone index and bone palette, part matrix source and paint colours, and logs under [car model walk] how it compares with the draws of the frame: for a car the camera sees, how many of its walked geometries are a draw of the frame (matched), have no draw (walked-only) or how many draws of its have no geometry (drawn-only); for a car it does not see, how many geometries the walk found and whether their buffers look resident. Reads only, nothing is built from it and nothing is written in the guest. With this on the car draws are collected in every frame, whether a car effect asks for them or not. Never saved. Live. Debug only. src/gpu/car_model_walk.cpp
mcla_gpu_car_rt_cars int32 -1 -1 to 8 toml / CLI Debug: how many OTHER cars (opponents, traffic, parked cars) the ray traced car effects see besides your own: your car's paint and chrome reflect a car driving alongside. -1 (the default): the graphics card's class decides (the nearest 4 within 20 m of your car on the High class, 2 within 14 m on the Mid class, none on the Low class); 0 turns the other cars off (your car alone, as it was); 1 to 8 asks for that many. Each car is built once into ray tracing structures (8 to 10 MiB at full detail) and a new car appears in parts over a few frames. Live. Debug only. src/gpu/car_rt_instances.cpp
mcla_gpu_car_rt_cars_match double 0.0 0.0 to 8.0 toml / CLI Debug: how near, in metres, the centre of a car the camera sees must be to a car of the game's own list to be that car, for the cars the camera does not see (mcla_gpu_car_rt_cars_memory). 0, the default: 3 m. A fast car's draws lag its record, so a larger number matches it; cars side by side are 3.5 m apart. Live. Debug only. src/gpu/car_rt_instances.cpp
mcla_gpu_car_rt_cars_memory bool true - toml / CLI Debug (the fix's own switch): the ray traced car effects also see the cars the camera does not (the car beside yours, out of the picture): a car that was drawn while it was near is remembered, and while it is not drawn it is placed again from the game's own list of cars. The same class limits apply (nearest cars, by distance to your car). off: only the cars drawn this frame. The reflection shows a remembered car in its paint where the model data gave it (mcla_gpu_car_rt_cars_model), else in a fixed grey in shade (its colour is not known while the camera does not see it). Live. Debug only. src/gpu/car_rt_instances.cpp
mcla_gpu_car_rt_cars_model int32 1 0 to 2 toml / CLI Debug (the fix's own switch): the ray traced car effects see the cars the camera does not draw built from the cars' OWN MODEL DATA in the game's memory (the part table, each part's vertex and index buffers, the part matrices, the paint), not only from the draws a car once made. 0: off. 1 (the default): a car built from its model data only where no car placed from memory (mcla_gpu_car_rt_cars_memory) stands, and the paint colour of the car for the cars placed from memory. 2: the model data first: a car built from it wherever it is, a car placed from memory beside it is dropped. The same class limits apply (nearest cars, by distance to your car). Live. Debug only. src/gpu/car_rt_instances.cpp
mcla_gpu_car_rt_cars_parked bool true - toml / CLI Debug (the fix's own switch): a traffic or PARKED car that the camera sees but no draw claims (the game gives a vehicle stencil ID to a car that moves. A parked car has none, so the draw path never takes it) is built into the ray traced car scene from its own model data like a car the camera does not see, so the player's reflections show the parked cars in front of the camera as well as the ones behind it. Within the traffic count of mcla_gpu_car_rt_cars_traffic and the radius of the graphics class, nearest first. Needs mcla_gpu_car_rt_cars_model. off: a car the camera sees is left to the draw path, as before. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_rt_cars_radius double 0.0 0.0 to 60.0 toml / CLI Debug: how far from your car, in metres, another car may be to be seen by the ray traced car effects (0, the default: the graphics card's class decides, 20 m on the High class, 14 m on the Mid class). The reflection reaches another car 18 m (High) or 12 m (Mid) away (mcla_gpu_car_rt_hit_reach) and a car's half length is 2 m, so a car whose centre is farther than the radius cannot show in it. Live. Debug only. src/gpu/car_rt_instances.cpp
mcla_gpu_car_rt_cars_traffic int32 -1 -1 to 8 toml / CLI Debug (the fix's own switch): how many TRAFFIC and PARKED cars the ray traced car effects see built from their own model data (mcla_gpu_car_rt_cars_model), besides the racers: the cars of the game's ambient list (the renderer's traffic client) that the camera does not draw this frame, ranked by their distance to your car within the class's radius. -1 (the default): the class's count (4 on the High class, 2 on the Mid class); 0 leaves the traffic out; 1 to 8 asks for that many. A traffic car's model is a fraction of a racer's (one low detail drawable), so the count is cheap. A traffic car is placed only after its bone matrices have been checked against the draws of a traffic car the camera sees. Live. Debug only. src/gpu/car_rt_instances.cpp
mcla_gpu_car_rt_cars_wheels bool true - toml / CLI Debug (the fix's own switch): a racer the camera does not draw is built WITH its four wheels (the tyre and the rim from the game's wheel manager, placed by the vehicle's own wheel matrices, steer and spin included), not the body and the parts alone. The wheels are placed only after their placement has been checked against the draws of the cars the camera sees. off: no wheels. Live. Debug only. src/gpu/car_rt_instances.cpp
mcla_gpu_car_rt_check bool false - toml / CLI Debug: proves the player's car as ray tracing structures (car_rt_scene.h) on a graphics card that has them (Direct3D 12 with DirectX Raytracing 1.1, Vulkan with ray queries). After the ambient occlusion's passes one ray is traced from the camera through every vehicle pixel of its linear depth image and the hit's distance is compared with the pixel's; the log says every 120 frames, under [car rt], how many vehicle pixels the structures cover and how far the distances are apart. Only the pixels the scene is meant to hold are traced: the player's car and the other cars the frame kept (mcla_gpu_car_rt_cars); the pixels of other cars are counted apart as not in the scene by design (the driver is in the player's count and shows as a miss). It needs the ambient occlusion on, and it asks for the car's meshes to be built. Costs a ray a vehicle pixel; never saved. Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_clearcoat double -1.0 -1.0 to 4.0 toml / CLI Debug: the clear-coat ray of the ray traced car reflection: one more ray along the exact mirror direction (no cone, no filter) beside the glossy cone, added to it by a share that follows the paint's fresnel, so that a car beside yours reads sharp in its paint (the way a clear coat does) on top of the glossy base. -1 (the default): by the graphics card's class (on the High class, off on the Mid class); 0 off; above 0 on at that strength (1 is the High class's). Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_rt_coat_layer bool true - toml / CLI Debug (the fix's own switch): the paint adds the clear coat's layer over the reflection of ANOTHER CAR in the ray traced image: the car's colour by the coat's own fresnel (0.07 at N.V 0.5, 0.20 at 0.3, 0.36 at 0.2), so that a car beside yours reads in your door at the strength a real clear coat gives it (the game's own paint reflects a few percent of what it reflects at a grazing view). Off: the car replaces the environment's reflection as before, which is as weak as the environment's. Your own car's parts are untouched either way. Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_rt_hit_ambient double 1.0 0.0 to 8.0 toml / CLI Debug: the share of the frame's ambient light (the cars' own pixel constants) in a shaded hit on another car (1, the default). Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_hit_calibrate bool true - toml / CLI Debug (the fix's own switch): the shaded colour of another car's hidden parts is brought to the game's own exposure: where the reflection ray hits a part of another car's paint that the camera sees, the pass also shades it by its model and compares the brightness with the game's colour there, and the shading's gain follows (about a window of twenty frames: it follows the hour). Off: the model's own light, which does not follow the hour. The census line in the log ([car rt refl] hits) says the difference either way. Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_rt_hit_cascade bool true - toml / CLI Debug: the shaded hit on another car also reads the game's own sun shadow map (its cascades) at the point, so that the reflected car stands in the light of the scene: the shade of buildings, trees and bridges falls on it as it falls on the road. Off: only the cars' own shadows (mcla_gpu_car_rt_hit_shadow). Needs the volumetric light on (it reads the cascades the game draws). Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_rt_hit_detail double 1.0 0.0 to 4.0 toml / CLI Debug: the detail of the shaded hit on another car (the car the reflection shows): the sky's openness (one ray from the hit towards the sky: a flank between two cars is darker), the contact with the ground (the lowest half metre of the car is darker), the clear coat's image of the sun by day and of a street lamp at night (a bright streak along a shoulder or a roof edge), and what each kind of part keeps of the ambient light. 1, the default; 0 is the shading as it was, above 1 makes the glints stronger. Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_hit_gain double 1.0 0.0 to 8.0 toml / CLI Debug: the brightness of the shaded hits on other cars against the colours the camera sees (1, the default). A flank that is too bright or too dark against the part of the same car the camera sees: move it. Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_hit_reach double 0.0 0.0 to 20.0 toml / CLI Debug: how far, in metres, the ray traced car reflection reaches to find ANOTHER car (0, the default: by the graphics card's class, 18 m on the High class and 12 m on the Mid class; at most 20). The weight of a hit falls over this from three quarters of it (0.7 on the Mid class). Your own car's parts keep mcla_gpu_car_selfrefl_rt_length (4 m). A car is in the scene only within this reach and two metres of yours (mcla_gpu_car_rt_cars_radius moves that). Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_rt_hit_shading bool true - toml / CLI Debug (the fix's own switch): where the graphics card can ray trace and the car self-reflection runs, a reflection ray that hits ANOTHER car shows the part in its own material: its paint colour (the gradient of the paint's constants, the livery over it), its diffuse texture, the sun and the sky's light on it, the environment map's reflection, and the lamps lit at night. Where the camera sees the part its own colour in the picture is used as before. Off: a part the camera does not see takes the stand-in colour (the colour the camera sees of that car, in shade, or its paint), as before. Needs the other cars in the scene (mcla_gpu_car_rt_cars). Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_hit_shadow bool true - toml / CLI Debug: the shaded hit on another car casts one ray towards the sun against the cars of the scene, so that a car's own shadow falls on itself and on its neighbour (the world's shadows come from the game's cascades: mcla_gpu_car_rt_hit_cascade). Off: the sun lights every part that faces it, but for the world's shadows. Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_hit_spec double 1.0 0.0 to 8.0 toml / CLI Debug: the share of the environment map's reflection (the game's own 512x256 map, read at the reflected direction and scaled by the fresnel) in a shaded hit on another car (1, the default). Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_lamps bool true - toml / CLI Debug (the fix's own switch): the lenses of the other cars in a ray traced reflection (the tail lights of the car beside yours, the headlights of the car behind) glow as the game's own lamps say: each lamp's light point (19 kinds a car: head, brake, tail, turn, reverse, police) says whether it is on and how strongly, and the lens it stands in glows by it, so a brake lamp, a lamp that is off and a turn signal's dark half-period are told apart, and nothing glows by day. A lens no lamp stands in keeps the old guess from the colour of the sun. Off: every lens at that guess. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_rt_masks int32 0 0 to 1 toml / CLI Debug: how the car's parts are told apart in the top level: 0 the tyres by their shader and glass by being drawn after the world's first draw (only in a frame where some of the car's draws are and some are not: where all are, nothing is glass), 1 every part that is no tyre is a body. Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_rt_opp_refl bool true - toml / CLI Debug (the fix's own switch): where the graphics card can ray trace and the car self-reflection runs, the OPPONENTS' cars (the cars beside yours that the game draws with the same paint shader: mcla_gpu_car_rt_cars says how many are in the scene) reflect the cars round them (yours, the other opponents and their own wings and mirrors) from their real shape, as yours does. Off: their paint takes the screen-space version, as before. Needs the ray traced car self-reflection (mcla_gpu_car_selfrefl_rt) and the other cars in the scene. Live. Debug only. src/gpu/car_rt_opp_refl.cpp
mcla_gpu_car_rt_opp_refl_rays int32 0 0 to 4 toml / CLI Samples for opponent paint reflections. 0 and 4 use the full set, 2 uses the outer pair, and 1 uses the mirror ray. CITY IN CAR PAINT RT can cap this count. Live. Debug only. src/gpu/car_rt_opp_refl.cpp
mcla_gpu_car_rt_opp_refl_texels int32 0 0 to 8000 toml / CLI Sets how much opponent paint can be traced per frame. Zero uses 500 thousand image texels on supported GPUs. Each included car keeps the selected sample count. Live. Debug only. src/gpu/car_rt_opp_refl.cpp
mcla_gpu_car_rt_paint_gamma double 2.0 1.0 to 3.5 toml / CLI Debug: the game's paint colours (what the player picks: an orange is 0.90, 0.49, 0.20) are raised to this power to be the colour the paint's light makes of them, for the colour another car shows in the ray traced reflection where the camera does not see the car (its paint, from the game's customisation record). 2: about what the game's own paint does (a car of colour 0.22 is black). 1: the colours as they are (paler, more grey). Live. Debug only. src/gpu/car_model_walk.cpp
mcla_gpu_car_rt_paint_lit double 0.8 0.02 to 4.0 toml / CLI Debug: how bright a paint of colour 1 is lit in the open, in the paint's units (a shader's output), for the colour another car shows in the ray traced reflection where the camera does not see the car; the reflection's own shade (0.4) is applied to it for a part in shade. 0.8: the estimate from the pictures. Larger makes the neighbouring cars brighter in the reflection. Live. Debug only. src/gpu/car_model_walk.cpp
mcla_gpu_car_rt_paint_one_ray bool true - debug menu: RENDERER FIXES > RT PAINT ONE RAY; toml / CLI trace one reflection ray per car paint texel, accumulate it over time, and skip background writes to car history. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_rt_parked_paint bool true - toml / CLI Debug (the fix's own switch): the PARKED cars' own ray traced paint reflections. A parked car writes no vehicle stencil ID, so its paint kept the game's reflections while the player's paint reflected it. With this on, the car's texels in the car history image are marked by its box and depth (a negative distance), its parts carry the traffic paint's bit, and its paint draw is given the constants of a still car, so the opponents' ray traced pass traces the parked car's paint like a moving traffic car's and the player's reflections show its exact colour. Within the traffic count of mcla_gpu_car_rt_cars_traffic and the share of mcla_gpu_car_rt_traffic_refl. Needs mcla_gpu_car_rt_cars_parked. off: a parked car is reflected but keeps the game's paint, as before. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_rt_traffic_refl int32 -1 -1 to 100 toml / CLI Debug (the fix's own switch): the paint of the TRAFFIC and parked cars (the cars of the city's streets, drawn with the game's cheap ambient paint) reflects the cars and the street round it in a ray traced reflection from their real shape, as the opponents' paint does: the car beside yours at a red light shows yours in its door. -1 (the default): by the graphics card's class (on the High class with 40 percent of the opponents' ray budget and cars up to 45 m away, on the Mid class with 25 percent and 30 m, off where there is no ray tracing). 0: off, the traffic's paint keeps the game's reads. 1 to 100: on at that percent of the budget (a car beside the player is always traced). Needs the ray traced opponents' reflection (mcla_gpu_car_rt_opp_refl). Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_rt_view int32 0 0 to 3 toml / CLI Debug: shows the car ray tracing check's picture over the scene (only while mcla_gpu_car_rt_check is on): 1 the error of each vehicle pixel's hit (green below 2%, yellow at 2%, red from 10%, magenta: nothing hit, grey-blue: a car outside the scene by design), 2 the hit's normal as colour (x right, y up, z forward, times 0.5 plus 0.5), 3 another car's paint as the reflection pass reads it from the instance table (the hue of the car's paint row on its pixels; purple: the car has no paint row). With the check on the log also says whether the shader read the paint rows the host wrote ("paint probe"). 0: off. Live. Debug only. src/gpu/car_rt_scene.cpp
mcla_gpu_car_selfrefl string auto one of auto, off, on menu: GRAPHICS > REFLECTIONS > CAR SELF-REFLECTIONS; toml / CLI Lets the car's paint reflect its own body. OFF or ON. Applies live. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_full double 0.25 0.05 to 1.0 toml / CLI Diagnostic: the share of the car self-reflection ray's points that, all inside a part of the car, take the whole hit (0.25: 3 of the 12). A smaller one makes every hit heavier and the outline of a part a steeper step, a larger one lighter and softer. Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_gain double 1.0 0.0 to 16.0 toml / CLI Diagnostic: a multiplier on the brightness of the car's own colour in its reflection (1: the target's exponent bias taken out, which is the paint's own units; unverified: raise it if the reflection of the car looks too dark). Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_history int32 0 0 to 2 toml / CLI Diagnostic: the size of the car self-reflection's history image: 0 the rule (half of the render size for the occlusion-only test level and from 2560 pixels across, the full size otherwise), 1 the full render size, 2 half of it in each direction (a quarter of the memory and of the pass's work). Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_length double 2.0 0.2 to 6.0 toml / CLI Diagnostic: how far the car self-reflection's ray goes, in the game's world units (about metres). Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_rt string off one of auto, off, on menu: GRAPHICS > REFLECTIONS > CAR SELF-REFLECTIONS RT; toml / CLI Traces the car's shape and nearby vehicles in paint reflections. OFF or ON. Needs CAR SELF-REFLECTIONS and ray tracing support. Applies live. src/gpu/car_rt_refl.cpp
mcla_gpu_car_selfrefl_rt_denoise int32 2 0 to 2 toml / CLI Diagnostic: the passes of the filter that takes the grain out of the soft edge of a part of your car reflected in another (the ray traced car self-reflection) before the paint reads it: 2 (the default) two passes, 1 one pass, 0 none (the raw trace, to compare with). Each pass is applied only where the soft edge is wide enough to have grain, so a sharp edge stays sharp; there is none for a gloss of 0. Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_selfrefl_rt_gloss double 2.5 0.0 to 12.0 toml / CLI Diagnostic: the half angle, in degrees, of the cone the ray traced car self-reflection casts its rays over: the paint's gloss. A part of your car reflected in another has an edge as soft as the cone is wide at its distance (2.5 degrees: about a hand's width at 1 m); 0 is a perfect mirror (one ray, a razor edge). Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_selfrefl_rt_length double 4.0 0.5 to 20.0 toml / CLI Diagnostic: how far the ray traced car self-reflection's ray reaches, in the game's world units (about metres); what it finds weighs less from 0.6 of it and nothing at it. Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_selfrefl_rt_parts int32 23 1 to 31 toml / CLI Diagnostic: the parts the ray traced self-reflection's ray can hit, a sum of: 1 your car's body, 2 its glass, 4 its tyres, 8 its driver, 16 the other cars beside it (opponents, traffic, parked cars; mcla_gpu_car_rt_cars says how many are in the scene). 23 (the default): the body, the glass, the tyres and the other cars. 7 is your car alone. Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_car_selfrefl_rt_resolve bool false - debug menu: PICTURE FIXES > RT PAINT RESOLVE; toml / CLI Trace all samples in the glossy reflection cone on player paint and use a narrower filter with LARecomp's built-in denoiser. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_car_selfrefl_source int32 0 0 to 2 toml / CLI Diagnostic (car self-reflections, shared screen products): where the history pass takes the scene colour from. 0: the shared copy of the lit scene colour where the frame has it at the picture's size (another effect wanted it), else the main colour target's own planes. 1: always the main colour target's planes (the old path). 2: as 0, and the car self-reflection asks for the shared copy itself, so that the same pictures can be compared with 1 without a reflections effect (the bytes of the history image are the same). Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_steps int32 12 4 to 24 toml / CLI Diagnostic: the points on the car self-reflection's ray, 4 to 24 (the cost is one texture read each, and three more for each segment between two points that holds the outline of a part; they are closer together near the car's surface, and the step the weight makes at a part's outline is a point's share of the whole hit). Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_strength double 1.0 0.0 to 1.0 toml / CLI Diagnostic: the most of the reflection the car self-reflection takes over, 0 to 1. Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_test int32 0 0 to 2 toml / CLI Diagnostic: forces the car self-reflections (mcla_gpu_car_selfrefl) to a level whatever the setting says, for a test or a comparison. 0: follow the setting (the default). 1: the specular occlusion alone, the reflection is darkened where a short ray along it passes just behind a part of the car (the setting has no such level: it costs the same as 2). 2: the full effect, the same, and the car's own colour of the previous frame is reflected there (what the setting on does). Needs the shader pack's car_selfrefl variant and the motion blur draw's camera. Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_thickness double 0.3 0.02 to 1.0 toml / CLI Diagnostic: how far behind a part of the car's surface (as the previous frame saw it) a ray point still hits it, in the game's world units; the weight of a point is full up to half of it and falls to nothing at it. Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_selfrefl_view int32 0 0 to 7 toml / CLI Diagnostic: shows a stage of the car self-reflection instead of the paint (only while the car self-reflections are on): 1 the weight of the hit, 2 the colour the ray found, 3 the paint's baked vertex occlusion, 4 the state of the trace (red: the point is not found in the previous frame, blue: the ray left the picture, green: no hit, yellow: a hit, orange where the march's hit is probably the hidden face of a part, the brighter the more of the reflection it takes), 5 the ray traced image at the paint's pixel (purple: no image this frame, cyan: no data there, so the march ran, green: no hit, yellow: a hit on the player's own part, orange: on another car), 6 the clear coat's layer's amount (its fresnel by the share of the hit on another car, white is 1), 7 what that layer adds (the other car's colour by the amount). 2 is the ray traced reflection alone at full intensity. 0: off. Live. Debug only. src/gpu/car_selfrefl.cpp
mcla_gpu_car_shadow_map string auto one of auto, off, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > PLAYER CAR SHADOWS; toml / CLI More detailed sun shadows from your car on itself and the road. OFF, HIGH or ULTRA. Uses CONTACT SHADOWS. Applies live. src/gpu/car_shadow_map.cpp
mcla_gpu_car_shadow_map_owns bool true - toml / CLI Diagnostic: while the car shadow map is drawn and the contact shadows are at full strength (the sun 12 degrees up or more, a dry road), the game's sun shadow maps no longer draw your car, so its shadow on the world is the car shadow map's alone and has no second edge of the game's low-detail one. Off: the game draws the car into them as it always does (for an A/B). Live. Debug only. src/gpu/car_shadow_map.cpp
mcla_gpu_car_shadow_map_view int32 0 0 to 1 toml / CLI Diagnostic: 1 draws the car shadow map in a square in the lower left corner of the picture (grey by depth, near the sun bright; dark blue where nothing of the car is), while the map is drawn. 0: off. Live. Debug only. src/gpu/car_shadow_map.cpp
mcla_gpu_car_shadow_reuse bool true - hidden DEBUG menu; toml / CLI Reuse steady car shadows between updates. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_city_hit_data string off one of off, high, ultra toml / CLI Debug: asks for the city's hit data (the texture coordinates, vertex colours and materials of the city, in the GPU pool the structures are built over: mcla_city_hit.v1.pack beside the city pack) without any effect reading it, to test the pool: off (the default), high or ultra, which also brings the city's structures at that level (and, with no car in the picture, the city alone in the top level). The log says under [city hit] and [rt scene]. A hit file that is missing or stale leaves it off. Live. Debug only. src/gpu/rt_scene_service.cpp
mcla_gpu_city_hit_probe bool false - toml / CLI Debug: with mcla_gpu_city_hit_data on, a compute pass reads the city hit data's pool and tables through the ray tracing descriptor set every frame, the way the hit shading will, and every 240 frames the log says under [city hit] whether what it read is what was copied (a checksum of every block, the sector table's rows, the first material and texture rows). The proof of the pool's offsets and bindings on this backend. Live. Debug only. src/gpu/city_hit_scene.cpp
mcla_gpu_city_hit_textures string off one of off, alpha, all toml / CLI Debug: with mcla_gpu_city_hit_data on, asks for the city's textures to be resident as well, to test the loader without an effect reading them: off (the default), alpha (the cut-outs' textures of the sectors in the ring, what the ray traced shadows' exact alpha reads) or all (every texture of the sectors in the ring, what the reflections will read). The file is mcla_city_tex.v1.pack beside the hit file. The log says under [city tex] (the first texture, the video memory's pressure) and the city ray tracing summary line has the textures' slots and accounted memory. Live. Debug only. src/gpu/rt_scene_service.cpp
mcla_gpu_city_refl_chrome bool true - toml / CLI Debug: with CITY IN CAR PAINT RT on, the player's chrome (the tailpipes, the badges, the trim) reflects the city and the cars beside it from the ray traced image, as the paint does, instead of only being darkened where the car's own parts cover it. false: the chrome as before. Live (the chrome's shader changes at the next draw). Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_refl_coat bool true - toml / CLI Debug: with CITY IN CAR PAINT RT on, a reflection of the city is a mirror's, as a reflection of another car is: sharp, with the paint's clear coat layer over it, so that what is in it can be told at a glance. false: the paint's soft cone alone. Live. Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_refl_glass bool true - toml / CLI Debug: with CITY IN CAR PAINT RT on, the player's car windows reflect the city and the cars beside it: a ray traced pass adds the mirror reflection over the glass by its Fresnel (more at a grazing view), on top of the game's own. false: the glass as before. Live. Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_refl_lamps bool true - toml / CLI Debug: with CITY IN CAR PAINT RT on, a point of the city that a reflection ray hit (in the car paint, the chrome, the other cars' paint and the glass) is lit by the street lamps and the fill lights around it, and lamp lenses, signs and lit windows glow by the world's lamp schedule (the city's lamp grid, 96 lamps and a cap on their light), so a night street reflects lit lamps, signs and windows. false: the reflections as before (no lamp light on a hit, the glow by the sun's height). Live. Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_refl_reach double 0.0 0.0 to 3000.0 toml / CLI Debug: how far a reflection ray looks for the city, in metres, 5 to 3000; 0 (the default) is the level's (high 150 m, ultra 1,000 m, a weak card 60 and 150). Live. Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_refl_screen bool true - toml / CLI Debug: with CITY IN CAR PAINT RT on, a reflected point that is in the picture takes the picture's own colour (the game's lighting, foliage and lamps as drawn). false: every reflected point is shaded from the city's own materials, for comparing. Live. Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_refl_view int32 0 0 to 2 toml / CLI Debug: with CITY IN CAR PAINT RT on, replaces the colour a city hit shows in the car paint's ray traced image (look at it through mcla_gpu_car_selfrefl_view 2): 1 where the colour comes from (green the picture's own, red shaded, yellow both), 2 the kind of surface it hit (a ramp over the G-buffer's classes); 0 (the default) the colour. Live. Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_refl_world_light bool true - toml / CLI Debug: with CITY IN CAR PAINT RT on, a point of the city that a reflection ray hit (in the car paint, the chrome, the other cars' paint and the glass) is lit by the world's light: the sun's direction and colour, the ambient, the sky and the environment map of the street the picture shows, not by the constants of the car's own draws, whose sun is a rig of its own. false: the car's draws' light, as before. Live. Debug only. src/gpu/city_refl.cpp
mcla_gpu_city_rt_alpha string exact one of exact, exclude, opaque, stochastic toml / CLI Debug: what the ray traced city shadows do with the city's cut-out triangles (fences, grates, neon cut-outs: 4% of the city, kept apart in the city pack). exact (the default) reads the cut-out texture's alpha where the ray meets the triangle, from the city hit data and the city textures, and blocks the ray where it reaches mcla_gpu_city_rt_alpha_ref; where those are not built or the texture is not loaded yet it does what stochastic does. exclude leaves the cut-outs out, opaque makes them solid, stochastic makes half of the rays that meet one a blocker, chosen by a hash, which the filter and the upscaler average into a half tone. Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_alpha_ref double 0.5 0.02 to 0.98 toml / CLI Debug: the alpha at or above which a cut-out texel blocks a ray in the exact mode of mcla_gpu_city_rt_alpha, 0.02 to 0.98 (the game's alpha test keeps a texel above its reference, mostly 0.5 for the city's cut-outs; the city pack does not know a draw's own). Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_alpha_view bool false - toml / CLI Debug: with the exact mode of mcla_gpu_city_rt_alpha, shows through the contact shadows' view 7 (mcla_gpu_contact_shadows_view) which way each pixel's sun rays went through the cut-outs: white no cut-out met, 0.7 decided by the texture's alpha, 0.35 decided by the stochastic rule (no hit data, or the texture not loaded yet); the log says every 120 frames how many candidates were decided each way, how many blocked, and the levels read. Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_build_budget bool true - debug menu: PERFORMANCE > CITY RT BUILD BUDGET; toml / CLI Spread city ray tracing builds across frames and keep sectors longer near the streaming boundaries. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_city_rt_car_coverage bool true - hidden DEBUG menu; toml / CLI Add nearby cars to the RT sun shadows and let vehicles receive city shadows. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_city_rt_check bool false - toml / CLI Debug: proves the city's ray tracing structures on a graphics card that has them. Instead of the sun's rays, one ray is traced from the camera through every city pixel of the occlusion's linear depth image and the hit's distance is compared with the pixel's; the log says every 120 frames, under [city rt shadow], how many pixels hit, how many are within 1% and 5% of the depth, and the error's median and 95th percentile. Needs RT SHADOWS (mcla_gpu_rt_shadows) and CONTACT SHADOWS on. Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_compaction bool true - debug menu: PERFORMANCE > CITY RT COMPACTION; toml / CLI Use less video memory for city ray tracing data. Changes affect future work. Use a fresh session for a memory comparison. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_city_rt_radius double 0.0 0.0 to 1500.0 toml / CLI Debug: how far from the camera the city's sectors are kept at full detail in ray tracing structures, in metres, 25 to 1500; 0 (the default) is the level's and the class's (150 m on a smaller card, 300 m, 600 m at ultra). The far level of detail reaches at least four times as far. Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_range double 0.0 0.0 to 1000.0 toml / CLI Debug: the farthest from the camera that ray traced city shadows are applied to, in metres, up to 1000; 0 (the default) is as far as the structures are the full detail the game drew there (never more than 700 m). A smaller number shows where the game's own shadows stand. Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_rays int32 0 0 to 8 toml / CLI Debug: rays a pixel for the ray traced city shadows, 1 to 8; 0 (the default) is the level's (high 2, ultra 4). Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_shadow_selective bool true - hidden DEBUG menu; toml / CLI Skip sun rays that cannot change the shadow. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_city_rt_sun double 3.0 0.25 to 16.0 toml / CLI Debug: the size of the sun's disc for the ray traced city shadows, as a multiple of the real sun (0.53 degrees across), 0.25 to 16. The real sun makes a penumbra 6 cm wide for a caster 10 m away; the few rays of a pixel and the filter turn that into noise farther off, so the default is 3. Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_city_rt_view bool false - toml / CLI Debug: with mcla_gpu_city_rt_check on, shows the check's picture through the contact shadows' view 7 (mcla_gpu_contact_shadows_view): white within 1% of the depth image's distance, grey within 5%, black otherwise (a miss or a wrong distance). Live. Debug only. src/gpu/city_rt_shadow.cpp
mcla_gpu_class string auto one of auto, low, mid, high toml / CLI Diagnostic: forces the GPU class the graphics upgrades' auto values are chosen from (low: integrated GPUs and handhelds, mid: discrete with under about 6 GiB of video memory or a slower GPU family such as the GTX 10 and 16 series and the RX 400/500 series, high: the rest). auto: the class the renderer found for this GPU, logged at start as '[gpu] class: ...' with the rule that chose it (by adapter type, by memory or by name). Only the value auto of the upgrades follows it (shadow filter and detail, car and road reflection detail, ambient occlusion, contact shadows, sun shafts, bounce light, and the world detail numbers: traffic LOD, traffic range, pedestrians, parked cars and city LOD); a choice of the player's own is never changed. The ray traced upgrades also read the ray tracing tier (mcla_gpu_rt_tier), which follows a forced class. Live. Debug only. The Steam Deck is found by its graphics chip's name and counts as the Low class with three cells of its own: AUTO makes SHADOW FILTER SOFT and SHADOW DETAIL and ROAD REFLECTIONS HIGH there (a Deck's GPU is about four times the iGPU the Low class was written for); everything else on AUTO is the Low class's, and low gives a Deck the plain Low cells. src/gpu/gpu_class.cpp
mcla_gpu_contact_shadows string auto one of auto, off, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > CONTACT SHADOWS; toml / CLI Adds short sun shadows under cars and near kerbs, walls and props. OFF, HIGH or ULTRA. Applies live. src/gpu/ao.cpp
mcla_gpu_contact_shadows_car_map_march bool false - toml / CLI Diagnostic: with the player's car's own sun shadow map in the frame (car_shadow_map.h), the short march that the car's own pixels (and any vehicle's) take also runs on the pixels the map covers, and the pixel gets the darker of the two. False: where the map holds a part of the car at a vehicle's pixel the map is the truth about the car's own parts (a wing's plate and its posts, a mirror, a sill), which the march only guesses from the picture's depth (a thin part has no thickness there), so that pixel takes no march steps and its contact shadow is the map's. For comparing the two on the wing and the mirrors (view 5 shows the map's term). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_car_sun int32 1 0 to 1 toml / CLI Diagnostic: where a car's pixel takes the sun's visibility from when the contact shadows work out the sun's share of its light. 1: from the game's own car sun image (the 256 m wide top-down image of the ground's sun visibility that every car shader reads), so a car in a building's shade gets no contact shadow of the sun's and a car half in it gets half; a frame without that image (6 h, 18 h, rain, night) takes 1. 0: always 1, which is a lit car's term wherever the car stands (for comparing). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_fade double 0.6 0.2 to 0.98 toml / CLI Diagnostic: how much of the contact shadows' ray a shadow stays fully dark over, 0.2 to 0.98: past that share of the ray's length it fades out, so that a shadow cut off by the ray's end does not end in a hard line. At 0.2 it looks like the first version's fade (a quarter of the shadow gone half way along the ray). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_fast bool true - toml / CLI Diagnostic: the cheaper contact shadows, to compare against the plain ones (false: the passes as they were). The march takes fewer steps where its ray covers few pixels on the screen (far pixels, a smaller picture; the squared spacing is kept), and the 3x3 filter that keeps shadow edges is done inside the apply pass, which saves a pass and a full size image write (only where the contact passes run at the picture's size: ultra, or the occlusion on ultra). With that, and in a frame that has the game's sun shadow mask, the march is also left out where the game's own shadow covers a pixel and its neighbours (the apply cannot use the result there: exactly the same picture). The picture is the same to within a shadow edge moving by a pixel. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_length double 0.6 0.1 to 3.0 toml / CLI Diagnostic: how far toward the sun contact shadows look, in the game's world units (about metres), with the sun high. The length grows with a low sun (0.7 / tan of its elevation, 1 to 3 times). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_mask_gain double 2.0 0.5 to 4.0 toml / CLI Diagnostic: what the game's sun shadow mask's stored value is multiplied by to give the sun's visibility (1 lit): the game's collector stores half of it and the lit shaders multiply by 2. Look at mcla_gpu_contact_shadows_view 3 (white where lit) if shadows are darkened twice or not at all. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_strength double 1.0 0.0 to 2.0 toml / CLI Diagnostic: how strongly contact shadows darken the sun's light where they apply, 0 to 2 (the sun's elevation and the wetness scale it further). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_thickness double 0.3 0.05 to 3.0 toml / CLI Diagnostic: how far in front of a step of the ray a surface may be and still hide it, in the game's world units: a thing nearer to the camera than that only overlaps on screen and hides nothing. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_vehicles double 1.0 0.0 to 1.0 toml / CLI Diagnostic: how strongly contact shadows darken the ground under a car, 0 to 1. The game's sun shadow map holds only the player's car, so the ground under a traffic car is as lit as an open road; a ground pixel with a car's body above it and in the way of the sun (found from the picture's depth and the cars' pixels, seen through the gap under the car) gets the full contact shadow, as the player's car gets its sun shadow from the game. Cars the game's sun shadow map holds (the player's, and traffic with TRAFFIC SHADOWS) are left out. 0 is the contact shadows as they were (only a strip along the car's edges and its wheels). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_shadows_view int32 0 0 to 7 toml / CLI Diagnostic: shows a stage of the contact shadows as a grey picture instead of applying them (only while they are on, and instead of mcla_gpu_ao_view): 1 the factor the picture is multiplied by (white: none), 2 the contact visibility (black where the ray is hidden), 3 the sun's visibility (the game's shadow mask: white lit; white everywhere where the frame has none), 4 the sun's share of the light, 5 the player's car's own sun shadow map's term alone (white; black where the map shadows the pixel: the wing, the mirrors, the sills and the wheels on the car and on the road near it; white everywhere in a frame without the map: car_shadow_map.h), 6 the sun's visibility the share of the light took (the game's mask on the world, the game's car sun image on a car, 1 on a car in a frame without that image), 7 the ray traced sun ray's term alone (white; black where the ray from the pixel toward the sun meets the player's car: its own parts on it, and its shadow on the road; white everywhere in a frame without it: car_rt_ao.h). 0: off. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_contact_skip_stat int32 0 0 to 100000 toml / CLI Diagnostic: with mcla_gpu_contact_shadows_fast and the game's sun shadow mask in the frame, every N frames (0: never) the contact march's skip is counted: a second march pass classifies every pixel (skipped under the game's own shadow, the sky or past the fade, turned from the sun, marching) with the mask's stored value at its centre, and the log gets the shares, the spread of those values (does the game's shade store exactly 0, which the skip needs?) and the model's march time for that share. That frame costs one more march and a readback of the picture. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_denoiser string row one of row, auto, rr, ours debug CLI / environment Overrides the player toggle for testing. ROW follows it. RR requests the vendor denoiser, OURS uses LARecomp's denoisers, and AUTO currently uses LARecomp's denoisers. Live. DLSS Ray Reconstruction loads its plugin at startup. In larecomp.toml the legacy values are read as a migration to the player toggle. Debug only. src/gpu/denoiser_setting.h
mcla_gpu_dlss_mask_tags int32 7 0 to 7 toml / CLI Diagnostic: which of Streamline's hint inputs carry the masks DLSS is given (what is drawn again for the upscaler: shadows of cars, particles, light volumes, car glass). Add up: 1 the reactive mask goes in as the bias-current-colour hint, 2 as the reactive mask hint, 4 the glass mask goes in as the transparency and composition hint. 7: all three. Used with mcla_gpu_upscaler_mask_test (an all-ones mask) to see which hint the DLSS plugin reads: with the test on, 1 alone, then 2 alone, then 4 alone; the one that makes the picture lose its smoothness over time is read. Live. Debug only. src/gpu/temporal_dlss.cpp
mcla_gpu_dlss_mode string dlaa - menu: GRAPHICS > DISPLAY > RENDER SCALE (with UPSCALING: DLSS); toml / CLI DLSS's mode, NVIDIA's names and the share of the output the scene is drawn at: dlaa (100%, only smoothed), quality (67%), balanced (58%), performance (50%) or ultra_performance (33%), per direction, of the output (the window's 16:9 area, whatever mcla_gpu_resolution_scale says). Live: the scene is drawn at the new size from a frame boundary once the upscaler is ready for it (several seconds for DLSS), and the old mode works until then. src/gpu/temporal_backend.cpp
mcla_gpu_dlss_rr string auto one of auto, off, probe, on toml / CLI Override the NVIDIA player toggle and the debug chooser. AUTO follows their effective choice. OFF omits the plugin, PROBE loads it for diagnostics without using it on frames, and ON selects it even with no effect to clean. Read at startup. Needs a restart. Debug only. src/gpu/denoiser_setting.h
mcla_gpu_dlss_rr_car_refl int32 1 0 to 1 toml / CLI Debug (A/B, Ray Reconstruction): what the ray traced reflections of the cars do while Ray Reconstruction takes the frame. 1 (the default): the paint reads the trace's raw image (the filter that takes the cone's grain out, mcla_gpu_car_selfrefl_rt_denoise, is skipped: Ray Reconstruction is the denoiser) and the distance of each reflection's hits is written into its hit distance guide. 0: the filter runs even then (the picture to compare with). With Ray Reconstruction not in use nothing changes, whatever this says. Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_dlss_rr_rt_ao int32 1 0 to 1 toml / CLI Debug: use raw ray traced ambient occlusion while DLSS Ray Reconstruction takes the frame. 0 keeps the built-in denoiser. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_dlss_rr_rt_gi int32 1 0 to 2 toml / CLI Debug (A/B, Ray Reconstruction): what the ray traced bounce light's per-pixel pass (ULTRA on a strong ray tracing card) does while Ray Reconstruction takes the frame. 1 (the default): it hands Ray Reconstruction its raw one-ray-a-pixel diffuse light (no filter of its own: Ray Reconstruction is the denoiser) and the length of each ray as the hit distance guide where no reflection gave one. 2: the same, but without the hit distance (NVIDIA's guide asks for it of the specular only). 0: it keeps its own filter even then (the picture to compare with). With Ray Reconstruction not in use (Super Resolution, FSR, no upscaler) nothing changes, whatever this says. Live. Debug only. src/gpu/scene.cpp
mcla_gpu_dlss_rr_rt_lights int32 1 0 to 1 toml / CLI Debug (A/B, Ray Reconstruction): what the ray traced light visibility (mcla_gpu_rt_lights) does while Ray Reconstruction takes the frame. 1 (the default): the filter does not run (Ray Reconstruction is the denoiser: it cleans the picture the light pass draws with the one-ray-a-pixel visibility in it), and the light pass reads the unfiltered visibility. 0: the effect keeps its own filter even then (the picture to compare with). With Ray Reconstruction not in use (Super Resolution, FSR, no upscaler) nothing changes, whatever this says. Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_dlss_rr_ssr int32 1 0 to 1 toml / CLI Debug (A/B, Ray Reconstruction): what the screen-space reflections do while Ray Reconstruction takes the frame. 1 (the default): they hand it their raw one-ray-a-pixel result straight into the colour (no accumulation over frames of their own: Ray Reconstruction is the denoiser) and write how far each ray went into its hit distance guide. 0: they keep their own accumulation even then (the picture to compare with). With Ray Reconstruction not in use (Super Resolution, FSR, no upscaler) nothing changes, whatever this says. Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_dlss_rr_test int32 0 0 to 3 toml / CLI Debug (Ray Reconstruction fallbacks): makes the frames Ray Reconstruction cannot take happen on purpose, to see that Super Resolution takes them and the switch back needs no rebuild of the context. 0: off. 1: the guide images are withheld from the upscaler for 30 frames in every 60 (the frames are Super Resolution's, the guides count as missing, the context stays). 2: in the same frames the dispatch carries no diffuse albedo, so the rules refuse the guides and Super Resolution takes the frame in the same call. 3: Ray Reconstruction's evaluation fails three frames in a row, once: it is dropped for the session and Super Resolution goes on (the log says so; DLSS stays on). Only while Ray Reconstruction is in use (mcla_gpu_dlss_rr on). Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_dlss_rr_view int32 0 0 to 6 toml / CLI Debug (Ray Reconstruction guides): draws one of the images the DLSS Ray Reconstruction guide pass makes from the G-buffer over the upscaler's output: 1 the diffuse albedo, 2 the normal (0.5 + 0.5 n), 3 the roughness, 4 the specular albedo, 5 the hit distance (black on a surface, blue in the sky), 6 the responsivity. The guide pass runs while mcla_gpu_dlss_rr is on (DLSS, an RTX card that supports Ray Reconstruction) or, for a view, whenever an upscaler runs; the G-buffer planes it reads are made from the frame after it is asked for. The game's tone map and UI are drawn over the view as usual. A frame with no G-buffer (the pause menu, the garage, the map, a cutscene) shows the upscaler's own picture. 0: off. Live. Debug only. src/gpu/rr_guides.cpp
mcla_gpu_draw_timing bool false - toml / CLI Time draw preparation and the geometry cache for the render-thread log. Scene profiling and render CPU comparisons also request these timings. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_env_fallback bool true - hidden DEBUG menu; toml / CLI Use the environment map where surface reflections have gaps. Live. Debug only. src/gpu/side_view_env.cpp
mcla_gpu_env_resolution string on one of on, off, auto, game, high, ultra menu: GRAPHICS > REFLECTIONS > PAINT REFLECTION DETAIL; toml / CLI Sharpens the environment reflected in car paint, windows and trim. ON uses a 1024x512 map and OFF uses the game's 512x256 map. Applies live. src/gpu/side_view_env.cpp
mcla_gpu_fetch_memo_raw bool true - debug menu: RENDERER FIXES > FETCH MEMO RAW; toml / CLI Skip decoding texture fetch words on a repeated binding. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_flicker_probe_shots string "" - toml / CLI With mcla_gpu_flicker_probe: a comma-separated list of guest frame numbers, each written as mcla_flicker_000_<frame>_shot.tga next to the executable whether or not it flickered. For comparing what two platforms or builds put in the window at the same frame. Needs a restart. Debug only. src/gpu/flicker_probe.cpp
mcla_gpu_frame_generation string off - menu: GRAPHICS > DISPLAY > FRAME GENERATION; toml / CLI Frame generation: off, fsr31 (AMD FSR 3.1 frame generation, on any graphics card, with or without an upscaler) or dlss (NVIDIA DLSS frame generation through Streamline, on an RTX 40 or 50 series card: 2x, and 3x or 4x on an RTX 50 with mcla_gpu_frame_generation_multiplier; Streamline presents the frames, and on Vulkan it applies from the next start). An interpolated frame is made between every two the game renders and shown half a frame before the real one, so a game that renders 60 frames a second shows 120. It does not make the game react faster: the real frames are shown one frame later and the latency reducer (NVIDIA Reflex, AMD Anti-Lag 2) is switched on while it runs, where the card has one. Only the 3D scene is generated; the menus, the pause menu, the map and the loading screens are shown as the game draws them, and the interface is drawn over each generated frame. The frame rate limit counts rendered frames while it runs (mcla_gpu_frame_generation_fps_limit). Wants a display of 100 Hz or more or a variable refresh display. Live: it is taken at a frame boundary and the picture may flicker once while the window's swap chain is made again. Only offered where the graphics card and the AMD files next to the game can run it. src/gpu/frame_generation.cpp
mcla_gpu_frame_generation_fps_limit int32 -1 -1 to 360 menu: GRAPHICS > DISPLAY > FRAME GEN FPS LIMIT; toml / CLI The frame rate cap while frame generation runs, in frames the game RENDERS a second (twice as many are shown): -1 is HALF DISPLAY, the default, the floor of 97% of half of the display's refresh rate (116 at 240 Hz, 58 at 120 Hz), which fills the display; it is only offered on a display of 100 Hz or more, and where it is not the cap you chose (fps_limit) applies. 0 is no cap, and a number from 1 to 360 caps the rendered frames at it (60 shows 120). A cap above half the display's rate adds latency: the frames queue in front of the display. Live. src/gpu/frame_generation.cpp
mcla_gpu_frame_generation_multiplier int32 2 2 to 4 menu: GRAPHICS > DISPLAY > FRAME GEN MULTIPLIER; toml / CLI How many frames DLSS frame generation shows for each one the game renders (mcla_gpu_frame_generation = dlss): 2 makes one in between, 3 two, 4 three. 3 and 4 need an RTX 50 series card (the plugin says how many the card takes; a higher number than it takes is lowered). The frame cap counts rendered frames (mcla_gpu_frame_generation_fps_limit). Live. src/gpu/dlss_frame_generation.cpp
mcla_gpu_frame_generation_tearing bool false - debug menu: RENDERING > FRAME GEN TEARING; toml / CLI Frame generation presents with vertical sync (FIFO), so a frame is never torn and a variable refresh display follows the frames. On presents immediately instead, which tears. Live: read at every present while frame generation runs. Debug only. src/gpu/frame_generation.cpp
mcla_gpu_frame_timing bool false - toml / CLI Measure GPU frame and overlay time. Pass timing also includes these measurements. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_fsr31_mode string native_aa - menu: GRAPHICS > DISPLAY > RENDER SCALE (with UPSCALING: FSR 3.1); toml / CLI FSR 3.1's mode, AMD's names and the share of the output the scene is drawn at: native_aa (100%, only smoothed), quality (67%), balanced (59%), performance (50%) or ultra_performance (33%), per direction, of the output (the window's 16:9 area, whatever mcla_gpu_resolution_scale says). Live: the scene is drawn at the new size from a frame boundary once the upscaler is ready for it, and the old mode works until then. src/gpu/temporal_backend.cpp
mcla_gpu_fsr4_mode string native_aa - menu: GRAPHICS > DISPLAY > RENDER SCALE (with UPSCALING: FSR 4); toml / CLI FSR 4's mode, AMD's names and the share of the output the scene is drawn at: native_aa (100%, only smoothed), quality (67%), balanced (59%), performance (50%) or ultra_performance (33%), per direction, of the output (the window's 16:9 area, whatever mcla_gpu_resolution_scale says). Live: the scene is drawn at the new size from a frame boundary once the upscaler is ready for it, and the old mode works until then. src/gpu/temporal_backend.cpp
mcla_gpu_fsr_debug_view bool false - debug menu: RENDERING > FSR DEBUG VIEW; toml / CLI Test lever (FSR 3.1 and FSR 4 only): the upscaler's context is made with AMD's debug visualization (it holds more video memory) and every dispatch asks it to draw its own views into the picture it makes: the motion vectors it received and how much it trusts its history (its reactive, disocclusion and blend factor views, as its version has them; in FSR 4 the bright purple is a pixel whose history it does not trust). Everything the game does afterwards (bloom, tone map) reads that picture, overlay included. A change makes a new context: about half a second of plain frames. For A/B. Live. Debug only. src/gpu/temporal_backend.cpp
mcla_gpu_fsr_min_disocclusion_accumulation double -1.0 -1.0 to 1.0 toml / CLI Test lever (FSR 3.1): FSR's fMinDisocclusionAccumulation (its default is -0.333; only 0 to 1 can be set here). AMD: raising it may reduce the white flicker of thin objects that disocclude one another often; too high, ghosting. -1: not set, FSR's own default. Passed to the context once it exists and again when it changes. For A/B. Live. Debug only. src/gpu/temporal_ffx.cpp
mcla_gpu_fsr_shading_change_scale double 0.0 -1.0 to 16.0 toml / CLI FSR 3.1's fShadingChangeScale, 0 and up (FSR's own default is 1). More makes its computed shading change count for more, so a pixel whose lighting changed lets go of its history faster; 0, the default here, turns that off (together with the velocity factor of 0, the strongest flickers of a still scene drop by about two thirds). -1: not set, FSR's own default is restored. Passed to the context once it exists and again when it changes. Debug only. Live. Debug only. src/gpu/temporal_ffx.cpp
mcla_gpu_fsr_velocity_factor double 0.0 -1.0 to 1.0 toml / CLI FSR's fVelocityFactor, 0 to 1 (FSR's own default is 1). 0, the default here, trusts the history less where something moved, which steadies bright pixels (on a still scene the strongest flickers drop by about two thirds, with no visible ghosting while driving). -1: not set, FSR's own default is restored. Passed to the context once it exists and again when it changes. Debug only. Live. Debug only. src/gpu/temporal_ffx.cpp
mcla_gpu_garage_fx bool true - debug menu: RENDERER FIXES > GARAGE FX; toml / CLI Use enhanced surface reflections and lighting in the garage. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_gate_unused_rt_scene bool true - debug menu: PERFORMANCE > GATE UNUSED RT SCENE; toml / CLI Skip ray tracing scene preparation and camera tracking when no effect needs them. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_gbuffer string auto one of auto, off, normals, full toml / CLI The G-buffer is groundwork for later effects and is off by default. Diagnostic (G-buffer, perf/GBUFFER-SURVEY.md): which planes of the G-buffer the main view's lit shaders write beside the game's colour. off: none, and the game's own shaders draw, bit for bit. normals: the world normal of the surfaces whose shader has the G-buffer variant, into a second render target the main view's draws carry, cleared with the game's own clear of the main colour. full: the same, the other planes are not written yet. auto: what the effects that are on ask for (the ambient occlusion, the contact shadows and the bounce light ask for the normal while mcla_gpu_ao_gbuffer_normals is on; none on: no image is made and no shader changes). The colour of the picture is the same with it on. Not in the 4x views behind the pause menu and the map, nor in a cutscene. Live (the first frame with it on builds the extra shaders and pipelines: a short stutter). Debug only. The planes are made only while an effect that reads them is on: the occlusion's and the bounce light's normals (while mcla_gpu_ao_gbuffer_normals is on), the light pass (LOCAL LIGHT PASS, HEADLIGHTS VIA PASS, NEON LIGHT), SURFACE REFLECTIONS, BOUNCE LIGHT RT and DLSS Ray Reconstruction; with none of them on nothing is made. src/gpu/gbuffer.cpp
mcla_gpu_gbuffer_attach string auto one of auto, writers, all toml / CLI Diagnostic (G-buffer): which draws of the main view bind the G-buffer's render targets. writers: only the draws whose shader writes it (the planes keep what an earlier draw wrote under a draw of a shader that has no variant yet). all: every draw of the main view's window, the ones that write no plane with a blend state that clears (an opaque draw: the pixels become no data) or masks (a blended draw: they stay); no render pass switch, no stale pixels. It needs a blend state per render target: Vulkan has it, Direct3D 12 only with the Plume fix that enables independent blending, and forcing all without it puts undefined values in the planes. auto: all where the back end has it, writers where not. Live. Debug only. src/gpu/gbuffer.cpp
mcla_gpu_gbuffer_view int32 0 0 to 7 toml / CLI Diagnostic (G-buffer): draws one plane of the G-buffer over the main view at the mid-scene depth copy, where the ambient occlusion runs (only while mcla_gpu_gbuffer makes the plane): 1 the normal as a colour (0.5 + 0.5 n), 2 the albedo, 3 the smoothness, 4 the class of each pixel as a colour, 5 which pixels hold data (white) and which do not (black), 6 the lit weight, 7 the missing pixels (green: data; red: the depth holds geometry and the planes hold no data; black: the sky). The planes no shader writes yet show as no data. The rest of the frame (particles, tone map, glow) is drawn over it as usual, so the colours are the game's after the tone map. 0: off. Live. Debug only. src/gpu/gbuffer.cpp
mcla_gpu_gi_bounce_headlights bool true - debug menu: PICTURE FIXES > RT BOUNCE HEADLIGHTS; toml / CLI Diagnostic (the ray traced bounce light's emitters, GI-BOUNCE-RT, perf/GI-BOUNCE.md, the A/B of one source group): on (the default) the light of the frame's surface lights (the headlight rig's lights of the cars it lights) and the head lamps of the cars it does not also bounces: what a ray of the RT bounce light hits (the probe field's rays for the lights that stand still, the per-pixel pass's for all of them, the reflections' city hits) is lit by it, by the same laws and units as the deferred light pass lights the picture with. Off: this group is not gathered and does not bounce through ray tracing. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_gi_bounce_neon bool true - debug menu: PICTURE FIXES > RT BOUNCE NEON; toml / CLI Diagnostic (the ray traced bounce light's emitters, GI-BOUNCE-RT, perf/GI-BOUNCE.md, the A/B of one source group): on (the default) the light of the cars' neon underglow tubes (it also needs NEON LIGHT on, which is what makes the game's neon table fill) also bounces: what a ray of the RT bounce light hits (the probe field's rays for the lights that stand still, the per-pixel pass's for all of them, the reflections' city hits) is lit by it, by the same laws and units as the deferred light pass lights the picture with. Off: this group is not gathered and does not bounce through ray tracing. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_gi_bounce_other bool true - debug menu: PICTURE FIXES > RT BOUNCE OTHER; toml / CLI Diagnostic (the ray traced bounce light's emitters, GI-BOUNCE-RT, perf/GI-BOUNCE.md, the A/B of one source group): on (the default) the light of the police light bars and the mods' lamps outside their grid also bounces: what a ray of the RT bounce light hits (the probe field's rays for the lights that stand still, the per-pixel pass's for all of them, the reflections' city hits) is lit by it, by the same laws and units as the deferred light pass lights the picture with. Off: this group is not gathered and does not bounce through ray tracing. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_gi_bounce_rear bool true - debug menu: PICTURE FIXES > RT BOUNCE REAR LAMPS; toml / CLI Diagnostic (the ray traced bounce light's emitters, GI-BOUNCE-RT, perf/GI-BOUNCE.md, the A/B of one source group): on (the default) the light of the cars' brake, tail, turn signal and reverse lamps also bounces: what a ray of the RT bounce light hits (the probe field's rays for the lights that stand still, the per-pixel pass's for all of them, the reflections' city hits) is lit by it, by the same laws and units as the deferred light pass lights the picture with. Off: this group is not gathered and does not bounce through ray tracing. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_gi_cabin bool true - toml / CLI Diagnostic (ray traced bounce light, the player's cabin, INTERIOR-CAM-FIX, the A/B): on (the default) the probe field's bounce light on the cabin's own surfaces (the driver, the dash, the wheel, the seats: a vehicle's part that is not paint, chrome or glass, inside the car's box) is cut to 30% while the camera is inside a roofed car, because the probes trace the city only and cannot see the car's roof (the glass's share is left). Off is the field's light as it was (the street's irradiance at the cabin, as if the car had no roof). Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_gi_cabin_rig bool false - debug menu: CAMERA > RT GI SHIELD COCKPIT ONLY; toml / CLI Limit the ray traced bounce light shield to the rendered cockpit. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_glow_neutral bool true - debug menu: RENDERER FIXES > REFLECTED LAMP FRINGE FIX; toml / CLI Reduce pink and green block artifacts in reflected lamp glows. Uses the green channel for nearly gray BC1 samples and preserves the lamp tint. Applies live when the shader variant is available. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_glow_visibility string soft one of game, soft debug menu: RENDERING > GLOW VISIBILITY; toml / CLI How the glow of street lamps (their halo and star) and the other glow sprites decide whether they are hidden by the scene: game (the game's own: one depth test at the glow's centre, so a lamp beside a palm trunk or a pole pops fully on and off as the wind or the camera moves it by a fraction of a pixel) or soft (the share of 24 tests on a small disc round the centre scales the glow: a glow in the open is the game's, one at an edge fades over about two pixels instead of popping; the disc is the same size at every render scale). game leaves the game's own shaders, and the picture, as they are. Needs the shader pack's variant file. Live; the first time soft shows, the graphics card builds its shaders (a short stutter). Debug only. src/gpu/pipelines.cpp
mcla_gpu_hdr string off one of off, auto, on menu: GRAPHICS > DISPLAY > HDR > HDR; toml / CLI HDR10 output. The menu offers OFF and ON. Legacy auto follows the display's HDR state. Applies live. src/gpu/hdr.cpp
mcla_gpu_hdr_compose_in_present bool true - toml / CLI Diagnostic (HDR output): the present's passes that read the frame 1:1 add the UI layer to the scene themselves, instead of reading a float image the compose pass made of the two. On by default: one full-screen float16 pass and its image less (about 0.15 ms and 63 MiB at 4K). Off: the compose pass and its image as before, for comparing the two. A scaled present and the debug views of mcla_gpu_hdr_layers_view use the image whatever this says. Live. Debug only. src/gpu/hdr_scene.cpp
mcla_gpu_hdr_highlights double 2.0 1.0 to 4.0 menu: GRAPHICS > DISPLAY > HDR > HIGHLIGHTS; toml / CLI HDR output: how far the game's lights, the sun, the sky at dusk and the headlights go above the game's white: 1 normal, 1.5 bright, 2 brighter, 3 brightest. It is the steepness of the HDR curve above where it leaves the game's, so the brightest light stays under the display's peak whatever it is. Changes at once, also in the world behind the pause menu and the map; nothing happens while HDR output is off. src/gpu/hdr_tonemap.cpp
mcla_gpu_hdr_layers_view int32 0 0 to 5 debug menu: RENDERING > HDR LAYERS VIEW; toml / CLI Diagnostic (HDR output): what a frame whose UI was kept as a layer shows. 0 the frame, 1 the UI layer alone, 2 the scene alone, 3 the UI's coverage as grey, 4 magenta where the scene is above the game's white, 5 the float scene's difference from the 8-bit scene times 16. Frames without layers show the front buffer whatever this says. Live. Debug only. src/gpu/hdr_scene.cpp
mcla_gpu_hdr_paper_white_nits double 0.0 0.0 to 10000.0 menu: GRAPHICS > DISPLAY > HDR > PAPER WHITE; toml / CLI How bright the game's white is in HDR, in nits (Windows' own slider covers 80 to 480). 0: the Windows SDR content brightness setting, or 200 when Windows does not report it. Changes at once. src/gpu/hdr.cpp
mcla_gpu_hdr_peak_nits double 0.0 0.0 to 10000.0 menu: GRAPHICS > DISPLAY > HDR > PEAK BRIGHTNESS; toml / CLI The brightest level HDR output may reach, in nits (200 to 4000 covers most displays). 0: what the display reports, or 1000 when it reports nothing. Changes at once. src/gpu/hdr.cpp
mcla_gpu_hdr_test_pattern bool false - menu: GRAPHICS > DISPLAY > HDR > TEST PATTERN; toml / CLI In HDR, shows brightness bars instead of the game. The top row starts at 100 nits and doubles every 4 bars, to see where the display stops showing steps; the bottom left is paper white and the bottom right the same bars rolled off to the peak setting. It covers the whole picture, the menus too. The pause menu's TEST PATTERN row shows it only while that row is highlighted and never saves it; set on the command line it stays on for the run. Changes at once. src/gpu/hdr.cpp
mcla_gpu_headlight_cone double 38.0 10.0 to 70.0 toml / CLI Diagnostic: the headlight cone's outer half angle in degrees (the full light is inside a third of it). Live. Debug only. src/gpu/headlight_rig.cpp
mcla_gpu_headlight_edge bool true - toml / CLI Diagnostic: how the headlights pick the cars at the edge of the frame. On (the default): a car is worth what its beam adds to the picture, not where its lamp is, and a car the game stops drawing because it left the frame keeps its light while its beam is still in the view (up to 1.5 seconds), fading with the beam and with its distance. Off: the first version, a light dropped within 8 frames of the game's last draw of its car, and a car whose lamp is off the screen counted at 0.35. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_log bool false - toml / CLI Diagnostic: logs a census line of the headlights every 300 frames, with '[headlights]' in front: the sun and the night factor, the lens draws seen, the cars with a front lens, the lights picked with their place and axis, and the draws that took the variant. Live. Debug only. src/gpu/headlight_rig.cpp
mcla_gpu_headlight_night int32 -1 -1 to 1 toml / CLI Diagnostic: when the headlights are on. -1: from the game's own lights (each car's headlight points say whether they are on: 2.0 at night, 0 by day), and from the sun's height for a car whose points were not seen (night below 3 degrees, none above 12; the default). 0: never. 1: always, by the sun's rule alone, to see them by day. Live. Debug only. src/gpu/headlight_rig.cpp
mcla_gpu_headlight_pass string forward one of forward, pass, both debug menu: RENDERING > HEADLIGHTS VIA; toml / CLI Diagnostic (the forward headlight stage against the light pass, the A/B): which of the two lights the cars' headlights. forward (the default): the lit shaders' headlight variant lights, as the game has always had it. pass: the light pass lights the headlights of the same cars with their shadows from the atlas (it also reaches the lit shaders the variant leaves out, the cars' paint and the pedestrians; needs the G-buffer's planes, which it asks for while HEADLIGHTS is on, and runs whatever LOCAL LIGHT PASS (mcla_gpu_local_lights) says), and the variant stays only on the draws the pass does not light (PASS FORWARD HEADLIGHT, mcla_gpu_headlight_pass_keep_forward). both: the variant lights and the pass adds the same lights again (the sum of the two: for the difference pictures). HEADLIGHTS (mcla_gpu_headlights) stays the master of both. Live. Debug only. src/gpu/headlight_rig.cpp
mcla_gpu_headlight_pass_keep_forward bool true - debug menu: RENDERING > PASS FORWARD HEADLIGHT; toml / CLI Diagnostic (the A/B of the route PASS of HEADLIGHTS VIA, mcla_gpu_headlight_pass): in that route the lit shaders' headlight variant stays on the draws the light pass does not light (the neon, the store sign and the lamp glass, which the pass skips as emissive; a draw the G-buffer does not carry, such as a pipeline still being made or a view that is not the main one; a draw that clears the planes), so what is in the beam is not left dark; the draws the pass does light drop it, so a pixel is lit once. Off: the route takes the variant away from every draw, as the first version did (what the pass does not light gets no headlight). No effect in the routes forward and both. Live. Debug only. src/gpu/headlight_rig.cpp
mcla_gpu_headlight_range double 70.0 10.0 to 200.0 toml / CLI Diagnostic: how far a headlight reaches, in metres (the light falls to nothing there). Live. Debug only. src/gpu/headlight_rig.cpp
mcla_gpu_headlight_shadow_bias double 1.0 0.05 to 40.0 toml / CLI Diagnostic: a factor on the depth bias the headlight shadows' lookup subtracts from a surface's distance from the lamps before it compares (the map's own slope bias is fixed). Larger: fewer speckles on surfaces that face the lamps and shadows that detach from what casts them. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_shadow_cone int32 1 0 to 1 toml / CLI Diagnostic: 1 (the default) leaves out of each headlight shadow map the draws whose place is outside the lamps' view (the view's cone and reach, with a margin for how far a thing reaches from its place: 7 m for a car, 40 m for anything else), before their constants are copied. 0 draws every collected draw into every map. For measuring what the cull saves and for finding a shadow the cull took away. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_shadow_cull int32 0 0 to 2 toml / CLI Diagnostic: which faces the headlight shadow maps draw. 0: the faces turned from the light (front faces culled where the game culls back faces; the default), 1: both faces, 2: the game's own. A pipeline is made for each, so a change takes a moment to build. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_shadow_kernel int32 2 2 to 4 toml / CLI Diagnostic: how many texel fetches a side the headlight shadows' lookup makes: 2 (the default) reads 4 x 4 texels with 4 fetches and lets a penumbra grow to 1.5 texels each side (the first version's), 3 reads 6 x 6 with 9 fetches (2.5 texels), 4 reads 8 x 8 with 16 fetches (3.5 texels). A larger footprint costs graphics card time (every pixel a headlight lights reads it) and shows a larger lamp (mcla_gpu_headlight_shadow_lamp_cm) as softer shadows. Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_headlight_shadow_lamp_cm double 7.0 0.5 to 50.0 toml / CLI Diagnostic: the radius, in centimetres, of the headlamp the headlight shadows' penumbra is worked out for (the first version: 7, a lens about 14 cm across). A shadow gets softer with its distance from what casts it by 2 R L / w, where R is this radius and L is how many metres behind a blocker the shadow falls, w how many metres the blocker is from the lamp: 1.3 cm at 1 m and 8.8 cm at 7 m behind a pole 9 m away, for 7. Larger is softer, and the kernel it asks for is cut by the footprint (mcla_gpu_headlight_shadow_kernel), so at 2 a larger lamp changes little: try 12 with 3 or 4, or 20 with 4. Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_headlight_shadow_skip int32 0 0 to 15 toml / CLI Diagnostic: draws left out of the headlight shadow maps, a sum of 1 plain opaque draws, 2 alpha tested ones (foliage, fences), 4 skinned ones (people), 8 vehicles' parts. 0: none left out. For finding which kind a wrong shadow comes from. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_shadow_skirt int32 1 0 to 1 toml / CLI Diagnostic: 1 (the default) draws each vehicle part a second time into the headlight shadow maps, 0.22 m lower and 0.6 m farther along the light, which puts the underbody on the road and closes the gap under a car that a low lamp shines through (without it the road behind a car is lit through the ground clearance except where the tyres block: a few thin stripes instead of the car's shadow). 0 draws the car once. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_shadow_test int32 0 0 to 1 toml / CLI Diagnostic: 1 makes a headlight shadow map from a light of its own at the camera (shining where the camera looks, 35 degrees wide, 40 m), whenever no car's headlight is lit, so that the maps can be looked at by day with mcla_gpu_headlight_shadow_view 1: the map from the camera's own point of view shows the same scene as the main view, which tells the replay's matrices are right. Nothing reads such a map: no light is shadowed by it. The setting itself must not be off. 0: off. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_shadow_view int32 0 0 to 1 toml / CLI Diagnostic: 1 draws the headlight shadow atlas in a rectangle in the lower right corner of the picture (grey by distance from the lamps, near bright; dark blue where nothing was drawn; the tiles are framed), while the maps are drawn. 0: off. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_shadow_views int32 0 0 to 2 toml / CLI Diagnostic: how many views each shadowed car gets in the headlight shadow maps. 1: one for the car (made from the middle of its two lamps: the first version's); 2: one for each headlamp (a pole in front of the car casts two shadows). 0: the level's own (medium: one for each car; high: one for each lamp of your car and one for the other car; ultra: one for each lamp of every shadowed car). A change remakes the atlas. Live. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_headlight_strength double 1.0 0.0 to 8.0 toml / CLI Diagnostic: how strong the headlights are, a number their light is multiplied by (1: the built-in look; 0: none). Live. Debug only. src/gpu/headlight_rig.cpp
mcla_gpu_headlights string auto one of auto, off, on menu: GRAPHICS > LIGHTING AND SHADOWS > HEADLIGHTS; toml / CLI Lets vehicle headlights light the road from dusk to dawn. OFF or ON. Applies live. src/gpu/headlight_rig.cpp
mcla_gpu_hud_map_hold bool true - debug menu: RENDERER FIXES > HUD RADAR HOLD; toml / CLI Refresh the HUD radar at 30 Hz or sooner when the map changes. Turn off to draw it every frame for comparison. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_impostor_native_size bool true - debug menu: RENDERER FIXES > NATIVE FOLIAGE BAKE; toml / CLI Draw 128x128 foliage impostors at the game's original size. Off lets Sharp Minimap scale these textures as before. Applies live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_lamp_shadows int32 -1 -1 to 1 toml / CLI Diagnostic (the street lamps' shadows): the nearest street lamps get a shadow from the shadow atlas (cars, poles and people on the road under them), drawn by the light pass at the mid-scene depth copy with the same lookup as the headlights'. -1 (the default): they follow the LIGHT SHADOWS row: while the light pass runs for anything else (LOCAL LIGHT PASS, mcla_gpu_local_lights, on, or HEADLIGHTS VIA, mcla_gpu_headlight_pass, set to PASS or BOTH) and LIGHT SHADOWS is not off, the lamps have a shadow, how many by its level (medium 2, high 4, ultra 8; Auto: Low off, Mid medium, High ultra). 0: none. 1: on whatever the pass's own settings say (the pass runs for the lamps). The shadow replay records into the shared atlas while it is on. Live. See mcla_gpu_lamp_shadows_mode for how the pass uses the shadow. Debug only. src/gpu/lamp_shadows.cpp
mcla_gpu_lamp_shadows_cache int32 1 0 to 1 toml / CLI Diagnostic (the street lamps' shadows): 1 (the default) gives each lamp two tiles, a static one for the world that does not move (drawn when the lamp takes its tile and added to, kept) and a live one for the cars and people (drawn every frame), which costs one more tile of video memory a lamp and saves the world's draws. 0: one tile a lamp, everything drawn every frame. Live. Debug only. src/gpu/lamp_shadows.cpp
mcla_gpu_lamp_shadows_lamps int32 0 -1 to 10 toml / CLI Diagnostic (the street lamps' shadows): how many lamps have a shadow at once. 0 (the default): the LIGHT SHADOWS level's number. A number from 1 to 10: that many (with a spare tile for a lamp whose shadow fades out). -1: no lamp (the headlights keep their views). Live. Debug only. src/gpu/lamp_shadows.cpp
mcla_gpu_lamp_shadows_mode int32 0 0 to 1 toml / CLI Diagnostic (the street lamps' shadows): how the light pass uses a lamp's shadow. 0 (the default): subtract: the game's own light grid still lights the lamp and the pass takes the shadowed share of that light away (the lamp's light as the grid has it, times one minus the visibility), for every surface the G-buffer holds, cars and people included. 1: own: the lamp is not in the grid (the lamp comparison's mod lamps) and the pass adds its light times the visibility. Live. Debug only. src/gpu/lamp_shadows.cpp
mcla_gpu_lamp_shadows_view int32 0 0 to 3 toml / CLI Diagnostic (the street lamps' shadows): what the light pass draws for a shadowed street lamp instead of its light. 0 (the default): the light. 1: the shadow itself as a picture, red where the lamp's shadow takes light and green where it is lit. 2: a colour for each lamp's row of the shadow table (brighter in the shadow), which shows the pick and its hysteresis. 3: the lamp's whole light is taken away whatever the shadow (a test of the subtraction: the lamp's light must go to the ambient and no pixel may go negative). Live. Debug only. src/gpu/lamp_shadows.cpp
mcla_gpu_layout_two_way bool false - toml / CLI Debug A/B: keep two recent input layouts, pipeline keys and ready pipelines. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_light_bounce string on one of off, on menu: GRAPHICS > LIGHTING AND SHADOWS > LIGHT BOUNCE; toml / CLI Light reflected from headlights, tail lights, neon, street lamps and decorative lights. Applies live. src/settings/generated/settings_gpu.h
mcla_gpu_light_composite bool true - hidden DEBUG menu; toml / CLI Combine smooth local lighting and bounced light in one pass. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_light_frame int32 0 0 to 15 toml / CLI Diagnostic (the one list of lights, the A/B of the flips): which consumers read the light manager's frame of lights instead of their own producer. A bit mask: 1 the lit shaders' headlight block, 2 the volumetric light's street lamps, headlights and shadow views, 4 the lights the headlight shadow maps pick cars and make views from; 7 all three; 8 the headlight shadow maps are recorded into the one shared shadow atlas (its layout, clear, the one barrier for the pixel and compute readers, memory fitted to the video memory budget) and the frame's shadow views are read from its published form by light id; 15 all four. 0 (the default until the runs have shown the bytes equal): every consumer reads its own producer, as before. The data a flipped consumer gets is byte for byte what its own producer made (mcla_gpu_lights_census checks it every frame while it is on, and says so in its line), so the picture does not change. Live. Debug only. src/gpu/light_manager.cpp
mcla_gpu_light_pick string unified one of unified and legacy toml / CLI Diagnostic (the one picker of the lights): how the lights are picked. unified (the default): the headlight rig's four lights and the cars that get shadow views are picked by one rule (how much of a beam is in the view, the distance, a place kept by the one that holds it), with every fade, linger and coast counted in seconds of the scene clock, so that a light fades in the same time at 30, 60 and 144 frames a second. legacy: the first code of the two pickers (frames counted at the game's pace), to compare with: at 60 frames a second the two pick the same lights with the same weights. Live. Debug only. src/gpu/light_manager.cpp
mcla_gpu_light_pick_record string "" - toml / CLI Diagnostic (the one picker of the lights): a file path. With it, the headlight rig writes every guest frame's inputs of its tracker (the cars its lens draws showed, the camera's view) to .rig.txt and the headlight shadow replay writes the inputs of its pick of cars (the rig's lights, the cap, the context) to .views.txt, in a text format that a unit test replays through both pickers. Empty: nothing is written. Live; changing the path starts new files. Debug only. src/gpu/local_shadow.cpp
mcla_gpu_light_shadow_bands bool true - hidden DEBUG menu; toml / CLI Use smaller shadow maps and reuse steady shadows for more distant lights. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_light_shadows string auto one of auto, off, medium, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > LOCAL LIGHT SHADOWS; toml / CLI Shadows from headlamps. OFF, MEDIUM, HIGH or ULTRA. Higher levels give more lamps individual shadows. Applies live. src/gpu/local_shadow.cpp
mcla_gpu_lights_census int32 0 0 to 100000 toml / CLI Diagnostic (the one list of lights): every guest frame the light manager collects the headlight rig's lights, the headlight shadow maps and the volumetric light's street lamps into one frame of lights, checks it against what the lit shaders' headlight block and the volumetric light's inputs hold, and uploads it; nothing reads it, so the picture does not change. Every Nth guest frame one log line says what was collected and how many checks found a difference. 0: off (the manager is not called). Live. Debug only. src/gpu/light_manager.cpp
mcla_gpu_local_lights bool false - debug menu: RENDERING > LOCAL LIGHT PASS; toml / CLI Diagnostic (the light pass; off until the lamp comparison has been judged): at the game's mid-scene depth copy, after the ambient occlusion, one draw per light adds the light to the main colour from the G-buffer's normal, albedo and lit weight and the depth, in the city's units (a lamp here is a lamp of the game's own light grid: the lamp comparison, mcla_gpu_local_lights_ab, holds one lamp through both paths). While it is on the main view's draws also write the G-buffer's normal and albedo (a small cost, paid only then). Which lights it adds is LIGHT PASS SOURCES (mcla_gpu_local_lights_sources) and mcla_gpu_local_lights_ab; with both at 0 it adds none. Not in the 4x views behind the pause menu and the map, nor in a cutscene. Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_local_lights_ab int32 0 0 to 2 toml / CLI Diagnostic (the lamp comparison of the light pass): what happens to the lamps of a mod's lights.bin (while the camera is over the mod's rectangle the game lights the scene with that lamp set alone). 0: the game's own light grid lights them (A). 2: the grid is built with them off and the light pass adds the same lamps (B; needs LOCAL LIGHT PASS, mcla_gpu_local_lights). 1: neither (the control: A and B each minus the control are the lamp's own light in each path). Read when the city's lights are loaded: it applies at the next start. Needs a restart. Debug only. src/mc_engine/modloader/features/mod_lights.cpp
mcla_gpu_local_lights_car_gain double 1.0 0.0 to 16.0 toml / CLI Diagnostic (the light pass): a multiplier on the look of the cars' lights it adds (the police light bars, the head lamps of the cars the forward headlight stage does not light, the brake, tail, turn and reverse lamps). Their colours and strengths are looks set by eye, not the game's units: this turns them up or down without a build. Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_local_lights_cost_off int32 0 0 to 7 toml / CLI Diagnostic (the cost of the light pass, the A/B): a sum of the savings to switch OFF so that the pass runs as it did before them. 1 the reach test before the planes are read (the pixel shader asks the depth whether any light of the draw reaches the pixel, and leaves the pixels none reaches without reading the G-buffer's three planes), 2 one draw for a car's neon tube (its two to four lights are summed in the shader: one pass over the picture where there were one for each light), 4 the cap of the neon contact term's reads (a pixel of a tube of three or four lights marches the depth for the two strongest lights only, the others take the nearest one's answer: up to 10 depth reads a vehicle pixel where each light marching for itself made up to 20). 0, the default: all on. The picture is the same either way up to the rounding of the half float colour target for the first two (they leave out only what adds nothing). The third moves a few percent of the light of a vehicle pixel the contact term shuts partly. Only the graphics card time differs otherwise. Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_local_lights_depth_bound bool true - toml / CLI reject pixels beyond the reach of every light in a deferred draw before reconstructing their world positions. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_local_lights_gain double 1.0 0.0 to 16.0 toml / CLI Diagnostic (the light pass): a multiplier on the light the pass adds (1: the game's units as read: the lamp's colour times the night light intensity and the height factor of the lit shaders). The lamp comparison (mcla_gpu_local_lights_ab) says whether 1 is right. Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_local_lights_reach_mask bool true - toml / CLI Reuse per-light reach tests in grouped deferred light draws. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_local_lights_sources int32 0 0 to 63 debug menu: RENDERING > LIGHT PASS SOURCES; toml / CLI Diagnostic (the light pass): which lights it adds besides the lamps mcla_gpu_local_lights_ab hands it. A sum: 1 the lights of the frame that add surface light and that the game's own shaders do not already light with (today the cars' headlights, which the forward headlight stage lights as well: the two add, so use it with HEADLIGHTS off), 2 a test lamp 8 m ahead of the camera and 4.5 m up, 4 the police light bars (the game's own flash), 8 the headlights of the cars the forward headlight stage does not light, 16 the cars' brake, tail, turn and reverse lamps, 32 the lamps of a mod's lights.bin that the game's grid is not lighting (the camera is outside the mod's rectangle). The cars' and mods' classes have a budget each that grows with the LIGHT SHADOWS level, 32 lights in all. 0: only the lamps of the lamp comparison. Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_local_lights_sphere_scissor bool true - toml / CLI use tighter screen bounds for deferred local lights. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_lock_ahead_verify bool false - toml / CLI Diagnostic: a lock whose pages an earlier lock read ahead still reads them from the pool (it waits for the GPU as before), and the bytes are compared with the ones kept. Reported in the log with the prefix 'lock read-ahead check:' (an error line for every page that differs, the first 8). The vinyl editor is where it counts. Off: nothing is done. Needs a restart. Debug only. src/gpu/resolve_memory.cpp
mcla_gpu_low_latency string auto - menu: GRAPHICS > DISPLAY > NVIDIA REFLEX or GRAPHICS > DISPLAY > AMD ANTI-LAG 2; toml / CLI The GPU vendor's latency reducer: NVIDIA Reflex on an NVIDIA GPU, AMD Anti-Lag 2 on an AMD one. It holds the game back at the start of a frame just long enough that the frame meets a free GPU: less input lag when the GPU is the limit, at the price of some frame rate when it is. auto (Reflex on; Anti-Lag 2 off until it has been tried on a Radeon), off, on, or boost (Reflex's On + Boost: the GPU clocks stay high; Anti-Lag 2 has no boost and takes it as on). Where the GPU, the driver or the graphics API has no reducer the pause menu has no row for it and it stays off whatever this says (the log says why at start). While frame generation runs (mcla_gpu_frame_generation) it is on whatever this says. Live. src/gpu/latency.cpp
mcla_gpu_luminance_scale_fix bool true - debug menu: PICTURE FIXES > EXPOSURE SAMPLE FIX; toml / CLI Fix: the game's auto-exposure (how bright the picture is made, which adapts over time) measures the same part of the screen at render scales above 1x as at 1x. The game averages the brightness of the frame from a small set of taps a fixed number of pixels apart; at 2x or 3x the same taps cover a half or a third of the area they covered at 1x (28% of the picture at 3x), so a small bright light (a lamp, a lit window, a tail light) moving in and out of one of them can make the brightness pump or flicker, most at night. This makes each tap average the pixels it stands for. At a render scale of 1x the picture is the same either way. Off: the game's own taps. Live. Debug only. src/gpu/pipelines.cpp
mcla_gpu_msaa_with_upscaler bool false - debug menu: RENDERING > MSAA WITH UPSCALER; toml / CLI While FSR or DLSS draws the scene, keep the MSAA level of mcla_gpu_msaa (2, 4 or 8 samples) instead of 1 sample. The upscaler then gets a scene whose edges and alpha tested foliage are already smoothed by the sample coverage, and has less aliasing to average over its jitter; it costs the multisampled scene at the render size. The upscaler's masks (mcla_gpu_upscaler_masks) are not affected: they are drawn into coverage images with the same samples and averaged, so the two switches are independent. For A/B. Live (read at start too). Debug only. src/gpu/msaa_level.cpp
mcla_gpu_neon_contact bool true - debug menu: RENDERING > NEON CONTACT; toml / CLI Diagnostic (a car's neon underglow in the light pass, the A/B): on (the default) a neon light is shut out of the car's own panels on a vehicle pixel: the light's way to the pixel is looked up in the picture's own depth for 0.8 m and a point behind a visible surface by a shell's thickness is inside something, so the vents, the lip, the cabin and the wheels' dish that face the light through a body get none of it. Off: the angle of the surface to the light alone (the neon shows through the other car's panels). Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_neon_light string auto one of auto, off, on menu: GRAPHICS > LIGHTING AND SHADOWS > NEON UNDERGLOW; toml / CLI Neon lights the road, kerbs and cars around the vehicle. OFF or ON. Applies live. src/gpu/local_lights.cpp
mcla_gpu_neon_light_gain double 1.0 0.0 to 4.0 debug menu: RENDERING > NEON LIGHT GAIN; toml / CLI Diagnostic (a car's neon underglow in the light pass): a multiplier on the neon's light (1 is the tuned underglow: the game's neon colour as a hue, its pulse and fade as a strength, a light of about 2.3 street lamps at 1 m facing the tube that fades to nothing at its reach; 0 puts the light out, 2 is twice as strong). Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_neon_light_reach double 1.0 0.25 to 2.0 debug menu: RENDERING > NEON LIGHT REACH; toml / CLI Diagnostic (a car's neon underglow in the light pass): a scale on how far the neon's light reaches (1: 5, 5.5 or 6 m by the LIGHT SHADOWS level; the light fades smoothly to nothing there, and the pass's reach test, its draw rectangle and its culling use the same distance). Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_neon_light_tuned bool true - debug menu: RENDERING > NEON LIGHT TUNED; toml / CLI Diagnostic (a car's neon underglow in the light pass, the A/B): on (the default) the light is the retuned one (the game's colour as a hue and a strength, a smooth falloff, a few metres of reach); off is the look before the retune (the game's glow colour as the light itself, a flat law and a hard cut at 6, 7 or 8 m). Live. Debug only. src/gpu/local_lights.cpp
mcla_gpu_noise_blue bool true - debug menu: PICTURE FIXES > BLUE NOISE EFFECTS; toml / CLI Diagnostic: the other stochastic passes' sampling noise (the ray traced car occlusion's and reflection cones' directions, the sun shafts' ray starts, the fog's sample offsets, the sun shadow filter's disk turn and the city reflections' sun and lamp samples) comes from the blue noise tile stepped along the R2 sequence every frame, so what the filters and the average over frames leave of it is a fine grain no pattern can be read from. False: the first versions' interleaved gradient noise, a lattice whose leftovers show as thin diagonal lines, for comparing. Live. Debug only. src/gpu/car_rt_refl.cpp
mcla_gpu_noise_held bool true - debug menu: PICTURE FIXES > NOISE IN HELD SCENES; toml / CLI Diagnostic: a scene held still for a test (the game frame number stops advancing) shows the same game frame number in every frame, so the noise of every stochastic effect (the occlusion, the sun rays, the reflection cone, the shafts, the shadow filter) stood on one sample for ever and its history averaged copies of it. True: the noise index also counts the frames the scene's number has been held, so a held scene keeps varying (a picture taken after the same number of frames is still repeatable). False: the scene's own number alone, for pictures that must match whatever number of frames was waited. Live. Debug only. src/gpu/scene.cpp
mcla_gpu_noise_resolve_cone bool true - toml / CLI Diagnostic (NOISE-NA6): one effect's share of mcla_gpu_noise_resolve_no_upscaler, for the ghost check's arms: the car reflection cone's turn (the denoise's third pass). True (the default): it varies its noise every frame and resolves it with its own history, as the master switch says. False: it keeps the first fixes' fixed blue pattern while the others go on as the master switch says. The master switch off wins (nothing varies). Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_noise_resolve_contact bool true - toml / CLI Diagnostic (NOISE-NA6): one effect's share of mcla_gpu_noise_resolve_no_upscaler, for the ghost check's arms: the contact shadows' march and the ray traced sun rays of the car and the city (the occlusion's own history over the contact image). True (the default): it varies its noise every frame and resolves it with its own history, as the master switch says. False: it keeps the first fixes' fixed blue pattern while the others go on as the master switch says. The master switch off wins (nothing varies). Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_noise_resolve_no_upscaler bool true - debug menu: PICTURE FIXES > NOISE RESOLVE, NO UPSCALER; toml / CLI Diagnostic: with no temporal upscaler running (plain MSAA, the default) the contact shadows' march, the ray traced sun rays of the car and the city, the sun shafts' ray starts and the car reflection cone's turn changed their noise every frame only while an upscaler averaged it; without one they held one pattern. True: the noise changes every frame here too, and each effect resolves it itself: the contact shadows and the sun rays through the occlusion's own history (reprojected by depth and the camera, 12 frames), the shafts and the reflection cone through a short history of their own. False: the first fixes' fixed blue pattern without an upscaler. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_noise_resolve_shafts bool true - toml / CLI Diagnostic (NOISE-NA6): one effect's share of mcla_gpu_noise_resolve_no_upscaler, for the ghost check's arms: the sun shafts' ray starts (the blurred image's history). True (the default): it varies its noise every frame and resolves it with its own history, as the master switch says. False: it keeps the first fixes' fixed blue pattern while the others go on as the master switch says. The master switch off wins (nothing varies). Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_object_names bool false - toml / CLI Give the GPU's textures, buffers, shaders and pipelines their debug names, which RenderDoc, PIX, Nsight Graphics and the D3D12 debug layer show. A name costs a few microseconds, and a world loads hundreds of textures in one frame, so they are set only when something can read them: on their own when RenderDoc, PIX or Nsight Graphics started the game, with mcla_gpu_debug_layer, and with mcla_gpu_perf_markers. This turns them on for a tool that does not load a DLL (Radeon GPU Profiler) or that attaches later. Read when the device opens. Needs a restart. Debug only. src/gpu/device.cpp
mcla_gpu_pause_vehicle_vectors bool false - toml / CLI Diagnostic: in the pause menu's world, the garage and the map, take the game's own per-vehicle motion for a vehicle's pixels in the temporal upscalers' motion vectors, as in the game view. Off (the default): a vehicle there takes the camera's motion like the world (a car in the garage is still while the camera orbits it, and the game's slots for the vehicles are not trusted in those frames). Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_pause_world_fx bool true - debug menu: PERFORMANCE > PAUSE AND PHOTO FX; toml / CLI Use the enabled lighting, volumetric and surface reflection effects in the city behind the pause menu and in photo mode. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_present_dither bool true - debug menu: PICTURE FIXES > PRESENT DITHER; toml / CLI Adds a faint noise, at most half of one colour step of the screen, to the finished picture just before it is shown, so that smooth gradients (the sky at dusk) show fewer bands. Live. Debug only. src/gpu/present.cpp
mcla_gpu_present_release_check bool false - toml / CLI Diagnostic, with mcla_gpu_present_release: checks what that rests on. It releases the guest at every guest present (also when the GPU is behind), and from the release to the end of the present it counts, and logs the first 16, each read or write of guest memory by the render thread. The count is in the '[gpu] present release:' line at shutdown; it must be 0. Needs a restart. Debug only. src/gpu/renderer.cpp
mcla_gpu_preset string vanilla one of vanilla, enhanced, enhanced_rt, custom, enhanced_ultra, enhanced_rt_ultra menu: GRAPHICS > PRESET; toml / CLI Select VANILLA, ENHANCED, ENHANCED RT or CUSTOM. See Graphics presets for the first-start choice and older files. src/gpu/gfx_preset.h
mcla_gpu_preset_from string none one of none, vanilla, enhanced, enhanced_rt, enhanced_ultra, enhanced_rt_ultra toml / CLI Records the preset that CUSTOM started from. Missing covered values follow that preset. NONE uses the registered defaults. Debug only. src/gpu/gfx_preset_apply.cpp
mcla_gpu_process_memory_log uint32 0 - debug menu: LOGGING > MEMORY LOG EVERY; toml / CLI Diagnostic: every this many frames, log what the process's memory is made of (the commit charge and working set, the committed address space by kind, the private regions by size, the process heaps, the biggest regions). It walks the whole address space, which takes some milliseconds on the render thread each time. 0: off. Debug only. src/gpu/process_memory.cpp
mcla_gpu_ray_regen string auto one of auto, off, probe, on toml / CLI Override the AMD toggle. AUTO follows the toggle when a supported reflection or bounce effect can use AMD's filter. OFF omits the runtime. PROBE logs runtime support on Radeon RX 9000 with Direct3D 12. ON requests the runtime even with no supported effect active. Read at startup. Needs a restart. Debug only. src/gpu/ray_regen_rules.h
mcla_gpu_ray_regen_ssr int32 1 0 to 1 F4 / toml / CLI With AMD FSR Ray Regeneration active, 1 lets AMD filter the combined Reflections on Surfaces trace including its city ray traced fallback. 0 uses LARecomp's reflection filter for comparisons. Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_readable_cache_check bool false - toml / CLI Diagnostic, with mcla_gpu_readable_cache: also ask the heap at every check the cache answers, and count and log (the first 16) the answers that differ. The count is in the '[gpu] readable cache:' line at shutdown; it must be 0. The heap is asked as often as without the cache. Needs a restart. Debug only. src/gpu/guest_capture.cpp
mcla_gpu_reflection_resolution string auto one of auto, game, high, ultra menu: GRAPHICS > REFLECTIONS > PLANAR REFLECTION DETAIL; toml / CLI Sharpness of the game's planar reflections, such as wet roads. GAME, HIGH or ULTRA. Applies live. src/gpu/side_view_reflection.cpp
mcla_gpu_reflection_scale double 0.0 0.0 to 4.0 toml / CLI Diagnostic: the road reflection's size as a multiple of the game's 256x256 (any step of 0.05), instead of what mcla_gpu_reflection_resolution says. 0: the setting's. Live. Debug only. src/gpu/side_view_reflection.cpp
mcla_gpu_resolve_7e3_ceiling bool true - toml / CLI A resolve of a 7e3 colour target (k_2_10_10_10_FLOAT, the 3D scene) clamps each sample's red, green and blue to what the console's target holds, as Xenia does: 0 to 31.875 as stored, which with the game's exponent bias of 4 is a colour of 1.99 at most. The host's float16 target holds far more, and the tone map and the bloom then see lights the console never had: a red underglow pool is white in the middle instead of pink. Off: no clamp. Not applied to a frame that can carry the HDR float scene (HDR output with the HDR pack loaded and no FXAA or SMAA running): its tone map wants the range. A/B switch. Debug only. src/gpu/resolve.cpp
mcla_gpu_resolve_memory_check bool false - toml / CLI Diagnostic, slow: every encode also runs at once into a second, reference pool (what mcla_gpu_resolve_memory_encode_delay 0 gives), and at each reader of the real pool (decode, vertex copy, lock write-back) and for the whole pool every 600 frames the bytes are compared with it. Reported in the log with the prefix 'resolve memory check:' every 600 frames and at shutdown (RESULT PASS or FAIL). For wrong or flickering textures that the delayed encode may cause: the answer is in the log. Off: nothing is done. Needs a restart. Debug only. src/gpu/resolve_memory.cpp
mcla_gpu_road_mirror_blur bool false - debug menu: PICTURE FIXES > ROAD MIRROR BLUR; toml / CLI Soften the planar reflection on wet asphalt and fade it with distance. Works with Reflections on Surfaces off or on. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_road_reflection_cars_test int32 0 0 to 2 toml / CLI Debug test, live, never saved: lets the game's own code draw cars into the wet-road reflection. 0 = off (the game as it is). 1 = the player's car. 2 = the player's car and the traffic. It opens the game's phase-2 vehicle draw (a camera mirrored about the player's ground height) only while a car is driven, not in a menu, the pause screen, the map or the garage. It may draw nothing (the car materials may have no reflection pass) and may thin out the other reflections while on; the log ("[road refl cars]") says how many vehicle draws went in. Debug only. src/mc_engine/hooks/road_reflection_cars_test.cpp
mcla_gpu_rt_bench string auto one of auto, off, force toml / CLI Diagnostic: the ray tracing benchmark that can move a card between the weak and the strong tier. auto: on the first start with a card that can trace (and again after its driver or the graphics API changes) a short compute pass traces a few million rays through a small synthetic city and logs the speed ([gpu] rt bench: ...), which is kept in rt_bench.txt next to larecomp.toml; off: no benchmark, and a kept result is not read; force: run it at every start. Needs a restart. Debug only. src/gpu/rt_bench.cpp
mcla_gpu_rt_denoise int32 -1 -1 to 3 toml / CLI Diagnostic (screen-space reflections, the ray traced fallback): our own filter that cleans the fallback's noise where DLSS Ray Reconstruction does not (an edge-aware blur of the pixels the fallback made: it follows the reflection, wide for a rough surface and a far hit, narrow for a near mirror, and stops at edges of depth, normal, roughness, brightness and hit distance). -1 (the default): the level of SURFACE REFLECTIONS gives the number of iterations (high 2, ultra 3); 0: off (the comparison); 1 to 3: that many iterations (steps of 1, 2 and 4 pixels of the half size image). Skipped by itself in a frame Ray Reconstruction takes. Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_rt_denoise_v2 bool true - debug menu: RENDERER FIXES > RT DENOISE V2; toml / CLI Use the variance-guided RT denoiser when a vendor denoiser is inactive. False uses the previous filter. Applies live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_descriptor_memo bool true - debug menu: RENDERER FIXES > RT DESCRIPTOR CACHE; toml / CLI Skip writing unchanged ray tracing scene descriptors. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_gi string off one of auto, off, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > BOUNCE LIGHT RT; toml / CLI Adds indirect light from city geometry. OFF, HIGH or ULTRA. Needs ray tracing support and city data. (VRAM) warns about memory pressure. Applies live. src/gpu/gi_setting.cpp
mcla_gpu_rt_gi_bounces double 0.5 0.0 to 0.95 toml / CLI Diagnostic (ray traced bounce light): how much of the field's own light the probes take back in when they are updated, which is the second bounce and the ones after it for free: 0 is strictly one bounce, 0.5 (the default) is about two, with brighter canyons; 0.95 at most, so that the loop cannot grow. Live. Debug only. src/gpu/gi_setting.cpp
mcla_gpu_rt_gi_daylight_recovery double -1.0 -1.0 to 0.125 debug menu: PICTURE FIXES > RT BOUNCE DAYLIGHT RECOVERY; toml / CLI Diagnostic: adjusts ray traced bounce where the probe field sees less sky than open ground. -1 uses the old apply, 0 enables the scene-colour gain, and positive values also recover that fraction of irradiance removed by the ground baseline. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_gi_dry_run bool false - toml / CLI Diagnostic (ray traced bounce light): lets the probe field run while the probe update is not built into this renderer, to prove the order of the frame. With BOUNCE LIGHT RT on, the field's textures are made, its reset and weights passes run and the apply is told of it, but nothing traces into the probes, so the field never becomes ready, shows nothing, and the screen-space bounce light stays the source. The BOUNCE LIGHT RT row is grey with (NOT READY) while the update is missing; this makes it live for a test. Has no effect once the update is built. Live. Debug only. src/gpu/gi_integration.cpp
mcla_gpu_rt_gi_fast_lookup_apply bool true - toml / CLI Use the dominant RT bounce probe where it accounts for almost all the light and reuse matching upsample guides. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_gi_field_schedule bool true - hidden DEBUG menu; toml / CLI Reuse settled distant bounced light between updates. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_gi_quarter_lookup bool true - toml / CLI Sample the RT bounce field at quarter size in exterior 4K views and use the full field lookup at unsupported edges. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_gi_reuse_coarse_probes bool true - toml / CLI refresh half as many already populated coarse RT bounce probes after warm-up. New and stale probes keep priority. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_gi_short_refresh_rays bool true - toml / CLI Use fewer rays to refresh established RT bounce probes. Keep full coverage during warm-up and streaming. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_gi_view int32 0 0 to 11 toml / CLI Diagnostic (ray traced bounce light, the probe field's apply): draws one picture over the main view in place of the bounce light's add, at the trigger where the field runs: 1 the irradiance the field holds at the pixel, 2 the confidence (red the field has nothing there, green it stands), 3 the sky visibility (dark blue closed, white open), 5 the ground baseline the field's irradiance is reduced by, 6 the leak test (green no probe is hidden from the point by geometry, red all of them are), 9 the light the pass adds (alone on black, four times as bright), 10 the net irradiance after the baseline, dead band, daylight correction and lookup confidence, 11 the occlusion's term the bounce is multiplied by. 4, 7 and 8 are the field's own pictures (the probes as spheres). 0: off. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_lights string off one of auto, off, on menu: GRAPHICS > LIGHTING AND SHADOWS > LOCAL LIGHT SHADOWS RT; toml / CLI Ray traced shadows from nearby headlights, neon and street lamps. OFF or ON. Applies live. src/gpu/rt_lights.cpp
mcla_gpu_rt_lights_check int32 0 0 to 2 toml / CLI Debug: the identity test of mcla_gpu_rt_lights. 1: the pass traces its rays (and costs its time) but writes every visibility as 1, so the picture must be the same, bit for bit, as with the pass off; 2: every visibility the light reaches is 0 (the lights with a ray vanish, a street lamp the game lights is taken away in full). 0 is the pass. Live. Debug only. src/gpu/rt_lights.cpp
mcla_gpu_rt_lights_k int32 0 0 to 9 toml / CLI Debug: how many lights get a ray (the top K), 1 to 9; 0 (the default) is the level's (3, and 6 at the largest LIGHT SHADOWS level). A group of three lights is one set of images: 1 to 3 lights cost one group, 4 to 6 two, 7 to 9 three. Headlights come first, then neon, then the nearest street lamps. Live. Debug only. src/gpu/rt_lights.cpp
mcla_gpu_rt_lights_lamp_slot int32 0 0 to 1 toml / CLI Debug (A/B): which lights get a ray for mcla_gpu_rt_lights. 0 (the default): headlights first, then neon, then the nearest street lamps, so three cars with their headlights on (a car's pair is one light) leave no ray for any street lamp. 1: with K of 2 or more and no street lamp among the picked lights, the last channel goes to the strongest street lamp in the light pass's list instead (the headlights and neon above it keep theirs). Live. Debug only. src/gpu/rt_lights.cpp
mcla_gpu_rt_lights_radius double 0.0 0.0 to 2.0 toml / CLI Debug: the radius of a light's disc in metres for mcla_gpu_rt_lights (the rays go to points of the disc, so a larger radius softens the edge of the shadow); 0 (the default) is by kind of light: a headlight's lens 7 cm, a street lamp's head 25 cm, neon 45 cm. 0 to 2. Live. Debug only. src/gpu/rt_lights.cpp
mcla_gpu_rt_lights_rays int32 1 1 to 4 toml / CLI Debug: rays to each light for every pixel the light reaches, for mcla_gpu_rt_lights, 1 to 4 (the strata of the light's disc: more rays, less noise, more cost). Live. Debug only. src/gpu/rt_lights.cpp
mcla_gpu_rt_lights_scale int32 0 0 to 2 toml / CLI Debug: the size the ray traced light visibility is traced at, for mcla_gpu_rt_lights. 0 (the default): half of the occlusion's traced size on each axis where that is taller than 720 lines, else the whole of it (the memory: 28 bytes a texel, 14 MiB at 1080p and at 4K, 25 MiB at 1440p); 1: always the whole traced size (about 4 times the rays and the memory at 1080p and 4K: the picture to compare with); 2: half wherever the size allows. Live. Debug only. src/gpu/rt_lights.cpp
mcla_gpu_rt_lights_view int32 0 0 to 2 toml / CLI Debug: with mcla_gpu_rt_lights, draw the visibility instead of the light: 1 the filtered visibility of each light that has a ray (red where the light is blocked, green where it arrives), 2 the raw one (before the filter). 0 is the picture. Live. Debug only. src/gpu/rt_lights.cpp
mcla_gpu_rt_reflections string off one of auto, off, on, high, ultra menu: GRAPHICS > REFLECTIONS > CITY IN CAR PAINT RT; toml / CLI Traces streets and buildings reflected in car paint up to 150 m away. OFF or ON. Needs CAR SELF-REFLECTIONS RT and city data. Applies live. src/gpu/city_refl_setting.h
mcla_gpu_rt_shadows string off one of auto, off, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > SUN SHADOWS RT; toml / CLI Traces sun shadows from city geometry. OFF, HIGH or ULTRA. Needs contact shadows, city data and ray tracing support. Applies live. src/gpu/city_rt_shadow.cpp
mcla_gpu_rt_tier string auto one of auto, none, weak, strong toml / CLI Diagnostic: forces the ray tracing tier the ray traced upgrades' auto values are chosen from (none: the card cannot trace rays or has no ray tracing units, weak: it traces at a moderate speed, such as an RTX 3060 or an RX 6600, strong: it traces quickly, such as an RTX 5080 or an RX 7900 XT). auto: the tier found for this card (its table row and, when it ran, the benchmark of mcla_gpu_rt_bench), logged at start as '[gpu] ray tracing tier: ...' with the rule that chose it; while mcla_gpu_class forces a class, the tier follows it (high: strong, mid: weak, low: none) so that a test that says a class runs that class's cells. Only the value auto of the ray traced upgrades (the car's reflection, occlusion and sun ray) follows it, and the number of cars they trace and how far; a choice of the player's own is never changed. Live. Debug only. src/gpu/rt_tier.cpp
mcla_gpu_rt_tlas_fast_build bool false - debug menu: PERFORMANCE > RT TOP LEVEL FAST BUILD; toml / CLI Compare faster preparation of ray tracing scenes with the default faster tracing. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rt_tlas_reuse bool true - debug menu: PERFORMANCE > RT TOP LEVEL REUSE; toml / CLI Reuse ray tracing scene data when the objects in it are unchanged. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_alpha string auto one of auto, exact, stochastic, opaque, exclude toml / CLI Debug: How traced AO handles cut-outs. Auto uses exact alpha on strong RT GPUs and stochastic alpha otherwise. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_blend_car int32 0 0 to 1 toml / CLI Debug: Keep the car pass's occlusion term in a traced AO frame for comparison. 0 combines only its sun term. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_cabin_guide bool false - debug menu: CAMERA > COCKPIT RT AO GUIDE; toml / CLI Check reduced-resolution ray traced ambient occlusion samples against cockpit depth and vehicle ID to keep shading on the correct side of edges. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_check int32 0 0 to 2 toml / CLI Debug: Traced AO identity check. 0 draws the result, 1 writes open visibility, and 2 writes fully occluded visibility. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_denoise string auto one of auto, ours, off toml / CLI Debug: auto and ours use the built-in denoiser. Off sends the raw ray traced ambient occlusion signal to compose. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_history int32 32 1 to 64 toml / CLI Debug: ray traced ambient occlusion history cap in frames. 1 disables temporal accumulation. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_interior string auto one of auto, screen, rt toml / CLI Debug: Cockpit AO policy. Auto probes the cabin, screen keeps screen-space AO inside it, and rt always traces it. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_quarter_at_4k bool true - toml / CLI trace and denoise RT ambient occlusion at quarter size in exterior views at 2160 render lines and above. Applies when trace scale is automatic. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_range double 0.0 0.0 to 90.0 toml / CLI Debug: Maximum distance to a traced AO receiver in metres. 0 uses the scene's safe range up to 90 m. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_raw_scale int32 2 1 to 2 toml / CLI Debug: ray traced ambient occlusion trace divisor for DLSS Ray Reconstruction raw frames. 2 is half size, 1 is full size. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_rays int32 0 0 to 4 toml / CLI Debug: Rays per traced AO pixel. 0 uses the GPU budget. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_reach double 0.0 0.0 to 2.5 toml / CLI Debug: Ray reach in metres. 0 takes the AO intensity radius share. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_reuse_trace_validity bool true - toml / CLI Use the RT ambient occlusion trace validity in the temporal and spatial filters. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_scale int32 0 0 to 4 toml / CLI Debug: Traced AO size divisor. 1 renders full size, 2 half size, 4 quarter size, and 0 uses the governor. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_screen string world one of auto, off, on, world toml / CLI Controls screen-space occlusion alongside ray traced occlusion. WORLD keeps the darker term on world surfaces. ON keeps it on all surfaces. AUTO uses screen-space occlusion as a fallback. OFF disables the contribution. Applies live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_spatial_resolve bool false - debug menu: PICTURE FIXES > RT AO SPATIAL RESOLVE; toml / CLI Prefilter one-ray, half-resolution ambient occlusion samples on world surfaces, including newly visible pixels. A wider pass smooths grain on surfaces with enough history while respecting edges. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_rtao_view int32 0 0 to 6 toml / CLI Debug: Traced AO debug image. 0 is the result, 1 raw, 2 filtered, 3 coverage, 4 history length, 5 rays, and 6 vehicle IDs. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_scene_extra_bias double -1.0 -3.0 to 1.0 debug menu: RENDERING > UPSCALER MIP BIAS; toml / CLI While an upscaler draws the scene smaller than it is shown, its textures are sampled by log2(render size / output size) levels of detail lower, as the output's size would pick, plus this many levels more. -1 is what AMD's FSR guide asks for (a sharper picture the upscaler fills in over its jitter); 0 or -0.5 sample blurrier levels, which shimmer less on fine texture detail (grass, road grain, fences) and soften it. For A/B. Live. Debug only. src/gpu/scene.cpp
mcla_gpu_screen_extract bool true - toml / CLI Diagnostic (shared screen products): where the depth chain, the normal image and the bounce light's colour chain are recorded. true (the default): by the shared screen products, once a frame, into images they own (the ambient occlusion, the bounce light, the contact shadows and the reflections read them). false: by the ambient occlusion's own passes into the same images (the old path, kept for one release to compare pictures). Both give the same bits. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_screen_hiz_fused bool true - toml / CLI Diagnostic (shared screen products): how the Hi-Z's first levels are made while the reflections want it. true (the default): the depth chain's own passes write them beside their images in the same draw (the depth pass the Hi-Z's level 0, the two coarser depth levels its levels 1 and 2), so that the Hi-Z's own passes for them are not recorded. false: the Hi-Z's own pass for every level (the old path, kept for one release to compare pictures). Both give the same bits. Needs mcla_gpu_screen_extract. Live. Debug only. src/gpu/screen_shared.cpp
mcla_gpu_screen_view int32 0 0 to 7 toml / CLI Diagnostic (shared screen products): draws one product of the shared screen frame over the main view at the mid-scene depth copy, where the ambient occlusion runs (it runs a frame of its own for this when it and the contact shadows are off): 1 the linear depth, 2 the Hi-Z level mcla_gpu_screen_view_level (the min of the linear depth, each texel stretched over the pixels it covers), 3 the Hi-Z level against the pixels it covers (red where it is deeper than one of them, which cannot be; green, brighter where the min is nearer than the pixel), 4 the normal image (only in a frame whose passes make it), 5 the vehicle mark of the depth, 6 the lit scene colour (the level mcla_gpu_screen_view_level; only while a consumer or this view makes it), 7 the history's colour (the last frame's lit scene colour). The rest of the frame (particles, tone map, glow) is drawn over it as usual. 0: off. Live. Debug only. src/gpu/screen_shared.cpp
mcla_gpu_screen_view_level int32 0 0 to 7 toml / CLI Diagnostic (shared screen products): the level the views 2 and 3 (the Hi-Z) and 6 (the lit scene colour) of mcla_gpu_screen_view show: 0 is the traced size (the lit scene colour's own size for the view 6), each level above is half the one below (the Hi-Z has 7 levels at 1080 lines, down to 1/64, the lit scene colour up to 5 and only while the reflections want them); a level the chain does not have shows its last. Live. Debug only. src/gpu/screen_shared.cpp
mcla_gpu_shader_memo_check bool false - toml / CLI Diagnostic: no draw takes its shaders from the frame's identity memo; every draw reads the guest's shader objects and looks the identity up in full, and the memo's answer, address, size and variant are compared with it. The differences are counted and logged (the first 16); the count is in the '[gpu] shader memo:' line at shutdown and must be 0. The lookups cost as much as without the memo. Needs a restart. Debug only. src/gpu/guest_capture.cpp
mcla_gpu_shadow_filter string auto one of auto, game, soft, pcss menu: GRAPHICS > LIGHTING AND SHADOWS > SUN SHADOW FILTER; toml / CLI GAME uses the original filter. HIGH softens edges. ULTRA makes a shadow softer as it falls further from its caster. Applies live. src/gpu/shadow_filter.cpp
mcla_gpu_shadow_filter_early_out bool true - hidden DEBUG menu; toml / CLI Skip extra ULTRA sun shadow filtering where the early samples agree. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_shadow_filter_pcf bool true - toml / CLI Diagnostic: how a tap of the soft shadow filter reads the shadow map. On: it compares the four texels one by one at the receiver's own slope and blends the answers (a true percentage-closer tap): the shadow edge is smooth, without the grain of one compare of a blended depth. Off: with the game's own sampler, which compares a depth blended from four texels (what the game's four taps do): a grainy edge, as the game's. For an A/B of the edge. Live. Debug only. src/gpu/shadow_filter.cpp
mcla_gpu_shadow_filter_radius double 1.0 0.25 to 4.0 toml / CLI Diagnostic: how wide the soft shadow filter is, as a multiple of the game's own filter measured in texels of the shadow map (1: the edge of a shadow takes the same number of shadow map texels, so the same width as the game's on its own 1280x1280 map, half as wide on high and a third on ultra: mcla_gpu_shadow_resolution). Live. Debug only. src/gpu/shadow_filter.cpp
mcla_gpu_shadow_filter_sun double 4.0 0.25 to 15.0 toml / CLI Diagnostic: how big the sun is for the contact hardening of pcss, as a multiple of its real angular radius (0.27 degrees). 1 is the real sun, whose penumbra is narrower than one texel of the shadow map for anything lower than about 3 metres, so a shadow is sharp everywhere; a larger sun makes the edge of the shadow of a car or a pole visibly softer with the distance from what casts it (the width is capped at twice the soft filter's). Live. Debug only. src/gpu/shadow_filter.cpp
mcla_gpu_shadow_filter_taps int32 0 0 to 32 toml / CLI Diagnostic: how many taps the soft shadow filter takes, 4 to 32. 0: by the graphics card (8 on an integrated one, 16 on the rest). Live. Debug only. src/gpu/shadow_filter.cpp
mcla_gpu_shadow_ledger bool false - toml / CLI Measure sun cascade submission and camera motion during daylight. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_shadow_resolution string auto one of auto, game, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > SUN SHADOW DETAIL; toml / CLI Resolution of the sun shadows. GAME, HIGH or ULTRA. Applies live. src/gpu/side_view_shadow.cpp
mcla_gpu_shadow_schedule bool true - hidden DEBUG menu; toml / CLI Reuse far sun cascades while the camera and casters stay within their update limits. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_shadow_stable_fit bool true - hidden DEBUG menu; toml / CLI Steady enhanced sun shadows as the camera moves. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_shadow_visible_far bool true - hidden DEBUG menu; toml / CLI Fit enhanced sun shadows to the visible scene. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_side_mirrors string on one of off, on, auto, high, ultra menu: GRAPHICS > REFLECTIONS > MIRRORS; toml / CLI Shows the road and racers behind you in the side and cabin mirrors. OFF or ON. The optional HUD rear view shares the picture. Applies live. src/gpu/mirror_setting.h
mcla_gpu_skip_identity_bloom bool true - debug menu: PERFORMANCE > SKIP 1X BLOOM VARIANT; toml / CLI Use the game's bloom shader at its native render scale. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_skip_shaders string "" - toml / CLI Workaround for a driver that dies compiling one particular shader combination: a comma-separated list of shader identities (the 16 hex digits of the pack's keys). A guest pipeline that uses any of them is not built, and its draws are treated like those of a pipeline that failed. Measured on Mesa's dzn (Vulkan over D3D12 in WSL2), which overflows its stack in vkCreateGraphicsPipelines for the pair b000e9d48f010bd8 + 68387d4a0b431769 (each alone is fine). Needs a restart. Debug only. src/gpu/pipelines.cpp
mcla_gpu_specular_occlusion bool true - hidden DEBUG menu; toml / CLI Darken planar and environment reflection fallbacks and car paint reflections where light is blocked. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_split double -1.0 -1.0 to 1.0 toml / CLI TRAILER TOOLKIT: a before/after split in one frame. A position from 0 to 1 across the picture's width: the effects named by mcla_gpu_split_effects (ambient occlusion, the present's dither) are applied only left of it, and right of it the picture is drawn without them. -1 is off (the default; nothing changes and nothing costs), 1 is the effect everywhere. A scene's split &lt;a&gt;..&lt;b&gt; over &lt;s&gt; keys write it; a compositor draws the divider line. Live. Debug only. src/gpu/split.cpp
mcla_gpu_split_effects string all one of all, ao, dither toml / CLI TRAILER TOOLKIT: which effects mcla_gpu_split cuts: ao (ambient occlusion only), dither (the present's dither only) or all. An effect that is off in its own setting stays off. Used only while mcla_gpu_split is on. Live. Debug only. src/gpu/split.cpp
mcla_gpu_ssgi string auto one of auto, off, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > BOUNCE LIGHT; toml / CLI Adds indirect light from surfaces in the picture. OFF, HIGH or ULTRA. Needs ambient occlusion. BOUNCE LIGHT RT takes over where it can run. Applies live. src/gpu/ao.cpp
mcla_gpu_ssgi_cabin_samples bool false - debug menu: CAMERA > COCKPIT BOUNCE SAMPLES; toml / CLI Match screen-space bounce colour to depth and sample at full texture detail on the player's cockpit surfaces, reducing colour bleed at edges. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssgi_clamp double -1.0 -1.0 to 10.2 toml / CLI Diagnostic: replaces the level's gain limit of the bounce light (mcla_gpu_ssgi_intensity), 0.05 to 10.2: the most the bounce may add to a pixel, as a multiple of that pixel's own colour (its largest channel; the hue stays; a soft limit that only guards a nearly black pixel's noise, so a shadow can gain several times its own light). The brightest the bounce can make a pixel is set by the cap, not by this. -1: the level's. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_far_steps int32 -1 -1 to 7 toml / CLI Diagnostic: the far ring's samples on each side of each direction, 0 to 7 (0: no ring). -1: by the bounce light's quality (2 at ultra, 1 at high). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_fast_filter_plane bool true - toml / CLI Calculate the plane distance directly in the screen-space bounce filter. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssgi_fast_gather bool true - toml / CLI Use the horizon cosine directly and skip radiance work for black samples in screen-space bounce light. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssgi_half bool true - toml / CLI Diagnostic: above 1080 lines of render height the bounce light (every quality, high and ultra) runs at half the picture's size, like mcla_gpu_ao_half_above_1080 does the occlusion, and its colour chain takes one of the colour target's MSAA samples a pixel (the four pixels of a 2x2 block give the texel) instead of all of them: the bounce light is the lowest frequency signal of the picture (it gathers 5 to 16 metres and is filtered over up to 30 pixels), so the picture is the same to within a thin edge and its passes cost a quarter and the images a quarter of the memory. 1080 lines and below are as they were. False: the sizes and the chain as before (mcla_gpu_ssgi_low says the old half size choice). Live; the first frame after the change makes the images again. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_intensity string default one of light, default, strong, stronger, strongest menu: GRAPHICS > LIGHTING AND SHADOWS > BOUNCE STRENGTH; toml / CLI Levels 1 to 5 control the strength of BOUNCE LIGHT and BOUNCE LIGHT RT. Applies live. src/gpu/ao.cpp
mcla_gpu_ssgi_lights bool true - toml / CLI Diagnostic: the bounce light also takes the light the deferred light pass added in the last frame (neon, headlights, street lamps) as part of the radiance it gathers, reprojected into this frame with the camera's motion and the depth history, so a wall beside a neon car picks up its colour and a garage's wall lit by the headlights lights the floor. It needs the bounce light (mcla_gpu_ssgi) on and the extracted screen products (mcla_gpu_screen_extract). False: the colour chain as it was before, which sees the colour before the light pass only (the A/B). Costs two captures of the main colour at the bounce light's size (the colour before and after the light pass, only in a frame whose light pass ran) and a few more reads in the colour chain. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssgi_lights_floor double 1.3 0.0 to 4.0 toml / CLI Diagnostic: the room the bounce light's lights' share (mcla_gpu_ssgi_lights) has under the cap, as a luma floor in the scene colour's units (a white wall in full sun is about 1.3). At night the radiance cap is its own floor of 0.5, which cut a neon pool or a headlight's wall to a third of a sun-lit white wall before the bounce took it: the lights' share is now held under the larger of that cap and this floor, and by day, where the cap is over it, nothing changes to the bit. 0 is the cap alone (the A/B), the default 1.3 is one white wall in full sun, 4 the most. The colour chain's own cap, the source start and the apply's ceiling keep their floor. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssgi_lights_gain double 1.0 0.0 to 8.0 toml / CLI Diagnostic: how much of the last frame's light (mcla_gpu_ssgi_lights) the bounce light takes as radiance, 0 to 8: 1 the light as it was lit, 0 none (the bounce light as it was), 2 twice as much. It is held under the same cap as every radiance the bounce takes (mcla_gpu_ssgi_test_clamp), so a larger gain mostly makes a dim lamp's light count as much as a bright one's. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssgi_low int32 0 0 to 2 toml / CLI Diagnostic: what the bounce light's high does (mcla_gpu_ssgi high or auto that comes to high) to be cheaper than ultra: 0 fewer directions (2 slices and 2 steps each instead of 3 and 3) at the occlusion's own size, 1 half the picture's size (the occlusion's slices and steps) even where the occlusion is high, 2 both. The same samples give the occlusion's visibility, so 1 and 2 also make the occlusion's own picture half resolution while the bounce light is on. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_quarter bool true - hidden DEBUG menu; toml / CLI Use a quarter-width and quarter-height trace for screen-space bounce light. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssgi_radius double 1.0 0.5 to 3.0 toml / CLI Diagnostic: how far the bounce light's NEAR samples look, as a multiple of the ambient occlusion's radius (mcla_gpu_ao_intensity); the same samples give the occlusion's visibility, so a change moves that too. 1: the occlusion's own. (The far ring that reaches past them is mcla_gpu_ssgi_reach.) Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_reach double -1.0 -1.0 to 16.0 toml / CLI Diagnostic: replaces the level's reach of the bounce light (mcla_gpu_ssgi_intensity), 0 to 16 metres: a second ring of samples from the occlusion's radius out to this, into what the near samples left open (the occlusion's own look does not change). 0: no ring. -1: the level's. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_strength double -1.0 -1.0 to 12.0 toml / CLI Diagnostic: replaces the level's strength of the bounce light (mcla_gpu_ssgi_intensity), 0 to 12: how much of the bounce light the picture gets (1: all that the surroundings send back by the picture's own colours; 0 runs the passes and adds nothing). -1: the level's. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test bool false - toml / CLI Diagnostic: the debug override of the bounce light (mcla_gpu_ssgi): forces its passes on, at the occlusion's own quality and whatever mcla_gpu_ssgi says (only while mcla_gpu_ao is not off). The scene colour at the occlusion's trigger is kept in a chain of images and the occlusion's main pass becomes a visibility bitmask that also finds what colour the blockers of each pixel's sky light are, then accumulated over frames and filtered. The occlusion's own look stays (its visibility now comes from the bitmask); the bounce is added to the picture as the setting adds it (mcla_gpu_ssgi_strength 0: not added), or shown by mcla_gpu_ssgi_test_view. Costs about as much as the occlusion again. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_atrous int32 2 0 to 3 toml / CLI Diagnostic: the iterations of the a-trous filter that takes the noise out of the bounce light after the history, for a picture of 720 lines, 0 to 3 (0: none; each iteration reaches twice as far: 5x5, 9x9, 17x17 pixels, and stops at depth edges and corners). A bigger picture gets one more for each doubling of its height (3 at 1080 and 1440 lines, 4 at 2160, at most 5), so the filter reaches as much of the picture; mcla_gpu_ao_stable false keeps this number at every size. The history itself is never filtered. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_clamp double -1.0 -1.0 to 15.75 toml / CLI Diagnostic: replaces the level's cap (mcla_gpu_ssgi_intensity), 0.25 to 15.75: the brightest radiance a sample of the scene colour may carry into the bounce, and the ceiling the bounce may fill a pixel up to, as a multiple of the frame's ambient plus sun light (never under 0.5): a street lamp, neon or the sun's disc is a source, not a surface that bounces light, and may light its neighbours no whiter than a white wall in full sun. -1: the level's. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_facing double 1.0 0.0 to 1.0 toml / CLI Diagnostic: how much a sample's surface must face the pixel to light it, 0 to 1: 0 takes every surface to face the pixel, 1 weighs each by the slope of its depth along the slice (a roof seen from the ground, a wall seen from behind: nothing). Costs one more depth read per lit sector. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_history int32 16 2 to 64 toml / CLI Diagnostic: how many frames the bounce light test averages the bounce over, 2 to 64 (the occlusion's own visibility keeps mcla_gpu_ao_history). The bounce is found again in the last frame by the camera's and the vehicles' motion and kept only where it is the same surface; more frames is smoother and slower to follow a light that changed, fewer is noisier. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_history_clamp double 2.0 0.25 to 8.0 toml / CLI Diagnostic: how far the bounce's history may be from this frame's 3x3 neighbourhood of the bounce, in standard deviations of that neighbourhood (never under 5% of its mean, and 15% of the history's own value wider on each side): the history is cut to that box. Narrow follows a changed light at once and keeps more noise (the first version, 1.25 with no share of the history, made the accumulated bounce 2.5 to 3.5 times as noisy); wide keeps the history longer and leaves a ghost of a car that went by. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_thickness double 0.0 0.0 to 4.0 toml / CLI Diagnostic: how thick the surfaces the bitmask finds are assumed to be, in the game's world units (about metres): a sample blocks the directions between its front and its back, the back being this far behind the front along the view ray. 0: solid, a sample blocks everything below its horizon (the occlusion's own horizon search, to within 1/32). Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_view int32 0 0 to 9 toml / CLI Diagnostic: shows a stage of the bounce light test as a picture instead of the scene colour (only while mcla_gpu_ssgi_test is on, and instead of the other debug views): 1 the bounce light the main pass found (one frame, noisy), 2 the scene colour chain's level 0 (the colour the blockers are taken from: averaged over the samples, capped), 3 its level 1, 4 its level 2, 5 the bounce light cleaned by a 5x5 mean, 6 the visibility the bitmask found (one frame, noisy: the occlusion's own view 2 shows it after the denoise and the history), 7 the bounce light after the accumulation over frames (the history), 8 the bounce light after the a-trous filter too (what the picture's bounce will be made of), 9 how much of the history each pixel kept (white: all it can, black: none, so it is new, a vehicle whose own motion is not known, or has no history yet). Shown at 0.3 of its value times mcla_gpu_ssgi_test_view_gain (view 9 at full white). 0: off. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_test_view_gain double 1.0 0.1 to 16.0 toml / CLI Diagnostic: the brightness of mcla_gpu_ssgi_test_view's picture, 0.1 to 16 times. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssgi_view int32 0 0 to 6 toml / CLI Diagnostic: shows a stage of the bounce light's apply as a picture instead of applying it (only while the bounce light is on, and instead of the occlusion's and the contact shadows' views; the test's own views come first): 1 the factor the picture is multiplied by, in colour (the occlusion's plus the bounce), 2 the bounce each pixel gets (four times as bright as the others), 3 the albedo estimate (the colour over the light the game's constants say fell on it, up to 1), 4 that light, 5 how much of the colour is a surface (black: a source of light, which gets no bounce), 6 the change of the picture against the game's own (grey: none; lighter: brighter; darker). Shown at 0.3 of the value, except 6. 0: off. Live. Debug only. src/gpu/ao.cpp
mcla_gpu_ssr string auto one of auto, off, high, ultra menu: GRAPHICS > REFLECTIONS > SURFACE REFLECTIONS; toml / CLI Adds reflections of visible cars and lights on wet roads and glossy surfaces. OFF, HIGH or ULTRA. Applies live. src/gpu/ssr.cpp
mcla_gpu_ssr_blue_noise bool true - debug menu: PICTURE FIXES > BLUE NOISE REFLECTIONS; toml / CLI Diagnostic (screen-space reflections): the reflection rays' random numbers (which way inside the surface's lobe each pixel looks) come from a blue noise tile that has no lattice in it, stepped along the R2 sequence every frame, so what the accumulation leaves of the noise is a fine grain that stays where it is. False: the first version's interleaved gradient noise, a lattice that slid across the picture 5.6 pixels a frame and read as stripes crawling over a puddle, for comparing. Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_classify bool true - debug menu: RENDERER FIXES > REFLECTION TILE CLASSIFICATION; toml / CLI Classify surface reflection tiles to concentrate rays where they are useful. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssr_fallback double 1.0 0.0 to 1.0 toml / CLI Diagnostic (screen-space reflections): the share of the game's own road reflection (its 256 x 256 planar view of the whole screen) the effect takes out of a road where its rays find a reflection of their own, 0 to 1 (times the strength the game shows that view with): 1 replaces the soft reflection with the sharp one, 0 adds the effect on top of it (the reflection is then doubled, as before the fallback). Where no ray finds anything the game's reflection stays alone. Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_handoff bool true - debug menu: RENDERER FIXES > REFLECTION FALLBACK HANDOFF; toml / CLI Blend surface reflections through screen history, RT, planar and environment sources. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssr_history double -1.0 0.0 to 0.98 toml / CLI Diagnostic (screen-space reflections): the share of the last frames the accumulation keeps, 0 to 0.98 (0.9 is a mean of about ten frames; 0 draws the raw ray, noise and all). -1: the level's (high 0.90, ultra 0.92). Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_min_smooth double -1.0 -1.0 to 1.0 toml / CLI Diagnostic (screen-space reflections): a pixel rougher than this (0 rough to 1 mirror; the G-buffer's smoothness after the road's wetness raised it) is not reflected. -1: the default, 0.40 (a dry road at 0.30 is not, a wet one at 0.92 is). Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_resolve bool true - debug menu: PICTURE FIXES > SPATIAL RESOLVE REFLECTIONS; toml / CLI Filters wet-road reflections and fades uncertain reflections into the fallback. OFF restores the previous resolve. Applies live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_rt string off one of auto, off, high, ultra menu: GRAPHICS > REFLECTIONS > SURFACE REFLECTIONS RT; toml / CLI Fills gaps in surface reflections with ray tracing. OFF, HIGH or ULTRA. ULTRA traces more of the picture and reaches farther. Needs SURFACE REFLECTIONS, ray tracing support and city data. Applies live. src/gpu/ssr_rt.cpp
mcla_gpu_ssr_rt_cars bool true - toml / CLI Shade cars hit by the RT fallback in road reflections when the fallback covers roads. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssr_rt_probe_misses bool false - toml / CLI Sample RT reflection misses at twice the reach on statistics frames. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssr_rt_screen_proxy bool true - toml / CLI Recover RT reflection hits on city proxies when their geometry agrees with the rasterized picture. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssr_rt_single_ray bool true - toml / CLI Trace one ray per pixel for the RT reflection fallback. Prefer the ray with less screen coverage. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssr_rt_sky_miss bool true - toml / CLI Use the environment map for upward RT reflection misses on roads with a planar reflection. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_ssr_sparkle_resolve bool true - debug menu: PICTURE FIXES > REFLECTION SPARKLE FIX; toml / CLI With temporal upscaling, keeps more of a stable reflection through intermittent misses. Applies live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_strength double 1.0 0.0 to 4.0 toml / CLI Diagnostic (screen-space reflections): the effect's strength, 0 to 4: the added reflection is multiplied by it (the class's own gain, the Fresnel term and the picture's edge fades come on top). Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_stub int32 0 0 to 1 toml / CLI Diagnostic (screen-space reflections): 0 uses the G-buffer's material plane where the frame has it and the stub where it does not (every pixel whose world normal points up and is no vehicle is a road of smoothness 0.85); 1 always the stub. Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_vehicle_rows int32 1 0 to 1 toml / CLI Diagnostic (screen-space reflections): 1 moves the reflection of a moving vehicle with the vehicle's own motion (the ambient occlusion's vehicle table), 0 treats it as the world's, which smears it (the comparison). Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_view int32 0 0 to 6 toml / CLI Diagnostic (screen-space reflections): draws one picture over the main view in place of the effect's add, where the ambient occlusion runs: 1 the term the effect adds (alone on black), 2 the class gate (green a pixel that reflects, brighter with its share; blue the stub's; orange a vehicle or the paint and chrome, which keep their own reflections; dark red anything else; black no data), 3 the raw trace at half size before the accumulation (premultiplied radiance), 4 the trace's distance (blue to white by a log scale, orange where the hit is a vehicle's, red a ray that found nothing, black not traced), 5 the game's road reflection view as the effect reads it, over the whole picture (black: none in this frame), 6 the term's sign (green what is added, red what is taken out of the game's own reflection). 0: off. Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_ssr_wet double -1.0 -1.0 to 1.0 toml / CLI Diagnostic (screen-space reflections): the road's wetness, 0 dry to 1 pouring rain: it raises a road's and a sidewalk's smoothness. -1: what the game says (the game's own wetness value for the main view's draws, 0.095 dry and 1.17 in rain, smoothed over about a second). A value forces it, to look at the wet road without rain. Live. Debug only. src/gpu/ssr.cpp
mcla_gpu_sun_shafts string auto one of auto, off, light, default, strong, stronger, strongest, low, high menu: GRAPHICS > LIGHTING AND SHADOWS > SUNBEAMS; toml / CLI Adjusts shafts of sunlight near dawn and dusk. OFF or levels 1 to 5. Applies live. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_cap bool true - toml / CLI Diagnostic: caps the sun shafts' two working images at 960x540 (the size they are at 1080p, a quarter of their old size at 4K, the same shape as the picture; a picture whose half size is under that is untouched). The shafts are a smooth, blurred light, so the picture is the same to within the ray noise being coarser; it saves a good part of the passes' time at 1440p and 4K while the shafts show. False: the images are half the picture's size, as they were. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_census int32 0 0 to 100000 toml / CLI Diagnostic: every Nth guest frame (and the first three frames with the main view), one log line of what the sun shafts did: the sun's height and where it is in the picture, the fades, what became of the frame's two points. 0: off. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_density double 0.9 0.3 to 1.0 toml / CLI Diagnostic: how much of the way to the sun each ray of the sun shafts covers, 0.3 to 1 (1: all of it). Longer rays are longer streaks; shorter ones stay near the sun. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_early bool false - toml / CLI Diagnostic: adds the sun shafts at the game's mid-scene depth copy, before the fog and the particles, instead of at the game's copy of the main colour after them (the fog then covers them), to compare the two. Without it the shafts go in at that copy and fall back to the mid-scene point by themselves when no such copy comes. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_intensity double 1.0 0.0 to 8.0 toml / CLI Diagnostic: a fine multiplier on the strength mcla_gpu_sun_shafts gives the sun shafts (1 is the level as it is). Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_sky_depth double 1e-5 0.0 to 0.01 toml / CLI Diagnostic: the stored depth (1 near, 0 far) at or under which a pixel is sky for the sun shafts. The sky is drawn at the far end, 0; raise it if the shafts find no sky. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_steps int32 0 0 to 128 toml / CLI Diagnostic: how many steps each ray of the sun shafts marches (8 to 128). 0: by the graphics card (32 on a mid-range one, 64 on a fast one). More steps make smoother rays and cost more; the light the rays gather stays the same. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_threshold double 0.5 0.0 to 4.0 toml / CLI Diagnostic: the brightness (the scene's linear light, 1 is white) the sky must pass to light the sun shafts; what is under it does not shine. Lower lets more of the sky shine. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sun_shafts_view int32 0 0 to 3 toml / CLI Diagnostic: shows a stage of the sun shafts instead of adding them (only while they are on and the sun gives shafts): 1 the sky image the rays march over, 2 the blurred image, 3 the added light alone. 0: off. Live. Debug only. src/gpu/shafts.cpp
mcla_gpu_sync_builds bool false - toml / CLI Trailer toolkit (M2d): while on, nothing is left out for a pipeline that is still being made. A draw whose pipeline a builder thread has not finished ("skipped [pipeline pending ...]" in the scene lines), and the second draws of the HDR scene and the upscaler masks, wait for it on the render thread instead, so no frame of a recording misses an object. The frames that make a new pipeline are slow while it is on. The log counts the waits and their time ("[gpu] capture sync"). Capture mode turns the same switch on by itself while it records. Off: as before. Live. Debug only. src/gpu/sync_builds.cpp
mcla_gpu_target_sig bool false - toml / CLI Debug A/B: memoize draw target scale, samples and depth layer using the target signature. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_temporal_jitter_hold bool true - toml / CLI Diagnostic: hold the temporal upscalers' sub-pixel jitter at zero while the history restarts in every frame (a camera the cut rule or the game's previous-matrix test cannot follow): a frame resolved from one frame is steadier unjittered. Off: the jitter goes on as before. Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_texture_decode_selftest bool false - toml / CLI Test only: at start-up, decodes a few thousand random texture levels (every block size, endian, tiled and linear, packed-tail offsets, DXT decompression) with the fast decoder and with the plain per-block one, and logs whether every byte matched. Needs a restart. Debug only. src/gpu/textures.cpp
mcla_gpu_texture_decode_threads int32 -1 -1 to 8 toml / CLI Threads that decode the textures of the draws queued behind the one the renderer is on (untile, byte swap), so a burst of new textures as the game streams in the next stretch of road does not stall the render thread. -1: one thread per 4 logical processors, up to 3, none below 4 processors. 0: the render thread decodes every texture itself, when its draw needs it. The threads run below the game's. Needs a restart. Debug only. src/gpu/textures.cpp
mcla_gpu_texture_decode_verify bool false - toml / CLI Test only: every texture level the game uploads is decoded a second time with the plain per-block decoder and compared byte for byte with the fast one's; a difference is logged once per texture. Slow: it brings the old cost back. Debug only. src/gpu/textures.cpp
mcla_gpu_traffic_shadows string auto one of auto, off, near, all menu: GRAPHICS > LIGHTING AND SHADOWS > TRAFFIC SHADOWS; toml / CLI Adds traffic and AI cars to the sun shadows. OFF, HIGH for nearby cars, or ULTRA for more distant cars. Applies live. src/mc_engine/hooks/traffic_shadow.cpp
mcla_gpu_traffic_shadows_cars int32 0 0 to 24 toml / CLI Diagnostic: the most cars that cast into the sun shadow map at once (the nearest ones). 0 is the setting's own (near 4, all 16); at most 24. Live. Debug only. src/mc_engine/hooks/traffic_shadow.cpp
mcla_gpu_traffic_shadows_cascades int32 0 0 to 4 toml / CLI Diagnostic: the cars are drawn into the first this many of the four sun shadow cascades (each one costs the cars' draws again). 0 or 4 is all four. Live. Debug only. src/mc_engine/hooks/traffic_shadow.cpp
mcla_gpu_traffic_shadows_log int32 0 0 to 3600 toml / CLI Diagnostic: every this many frames print, for each traffic car drawn into the sun shadow map, a [traffic-shadows] yaw: line (the body's heading, the heading of the transform the shadow draw used, their difference and the car's turn rate) and, for each soft decal made, a [traffic-shadows] decal: line. 0 is off. Live. Debug only. src/mc_engine/hooks/traffic_shadow.cpp
mcla_gpu_traffic_shadows_rotation bool true - toml / CLI Diagnostic (the fix's own switch): the sun shadow of a traffic car is turned with its car. The game's shadow shader draws a car without its bone matrices, so the shadow of a car it was never meant to draw kept the model's own heading and only followed the car's position. Off: the game's transform, as before the fix. Live. Debug only. src/mc_engine/hooks/traffic_shadow.cpp
mcla_gpu_traffic_shadows_radius double 0.0 0.0 to 1000.0 toml / CLI Diagnostic: how far from the camera a car may be and still cast into the sun shadow map, in metres. 0 is the setting's own (near 40, all 150). Live. Debug only. src/mc_engine/hooks/traffic_shadow.cpp
mcla_gpu_traffic_shadows_reach bool true - hidden DEBUG menu; toml / CLI Skip traffic and opponent cars that cannot cast into a sun shadow area. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_upscaler string off - menu: GRAPHICS > DISPLAY > UPSCALING (label shows APPLYING, RESTART or NO ROOM); toml / CLI Upscaling of the 3D scene: off, fsr31 (AMD FSR 3.1), fsr4 (AMD FSR 4, only where the graphics card and driver run it) or dlss (NVIDIA DLSS, only on an NVIDIA RTX card, with NVIDIA's files next to the game). The scene is moved by a different sub-pixel amount every frame and the upscaler rebuilds a sharper, steadier picture from the frames; the menus, the HUD and the bloom, glow and tone map stay at full size. The picture it makes is the size of the window (its 16:9 area), whatever mcla_gpu_resolution_scale says, and the scene is drawn at the mode's share of that. While one is on, FXAA and SMAA are held off and MSAA is 1 sample (your MSAA choice, mcla_gpu_msaa, is kept and comes back when the upscaler is off). A choice this PC cannot run is treated as off. Live: turning an upscaler on, off or to another one is made at a frame boundary once the new one is ready, while the old one keeps working (FSR in about half a second, DLSS in several seconds). The exception is DLSS on Vulkan: that graphics device is made through NVIDIA's Streamline only when dlss is the saved choice at the start (it adds several seconds to every start), so choosing dlss in a Vulkan game started with something else is saved and applies at the next start, and the menu offers a restart. Until then the game keeps what it runs (the upscaler and its mode as they were, or none), it is not turned off. src/gpu/temporal_backend.cpp
mcla_gpu_upscaler_inputs_lean bool true - hidden DEBUG menu; toml / CLI Prepare the upscaler's inputs in fewer passes. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_upscaler_inputs_verify bool false - toml / CLI Record both paths in the same GPU capture to compare upscaler inputs. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_upscaler_lazy_load bool true - toml / CLI Debug (A/B): load the upscalers' libraries only when they are needed. On (the default): AMD's FidelityFX runtime (amd_fidelityfx_upscaler_*.dll, 35 to 55 MiB) is opened when an FSR is first used, not at every start (an AMD graphics card still asks it at the start, because only the runtime can say whether FSR 4 is offered), and NVIDIA's Streamline and DLSS (D3D12 on an RTX card) start their background warm-up only once the pause menu's UPSCALING row has been shown or DLSS frame generation is chosen, not five seconds after every start; DLSS and FSR chosen at the start load at the start as always. Off: the old behaviour, FidelityFX opened by every start and the DLSS warm-up five seconds after the game first draws. Read at the start. Needs a restart. Debug only. src/gpu/temporal_backend.cpp
mcla_gpu_upscaler_mask_test int32 0 0 to 3 toml / CLI Diagnostic: tests whether the upscalers read their mask inputs. 1 gives the reactive mask (what FSR calls reactive; DLSS's bias-current-colour and reactive hints) every pixel at 1, 2 gives the transparency and composition mask every pixel at 1, 3 both. An upscaler that reads a mask then stops trusting its history: the picture loses its smoothness over time (edges crawl, thin lines flicker); one that does not read it looks as before. Only while FSR or DLSS runs. 0: the real masks. Live. Debug only. src/gpu/upscaler_masks.cpp
mcla_gpu_upscaler_masks bool true - debug menu: RENDERING > UPSCALER MASKS; toml / CLI Whether the upscalers get the reactive mask (the cars' shadow decals, particles, light volumes) and the transparency and composition mask (car glass): on, they are drawn (upscaler_masks.h). Off: no mask is made and the upscaler trusts its history everywhere, for A/B (a mask that is wrong shows as shimmer where it covers). Live. Debug only. src/gpu/scene.cpp
mcla_gpu_upscaler_post_reads_output bool true - debug menu: RENDERING > POST CHAIN ON UPSCALED; toml / CLI While FSR or DLSS draws the scene at the output's size (FSR's Native AA, DLAA): the game's post chain before the upscale (the half-size downsample that the bloom's bright pass, the exposure and the motion blur's half-size layer are made from) reads the previous frame's upscaled picture, as it does at every other mode (on, the default since 2026-11-14: measured on a still pause view with FSR Native AA, flat areas 8x and the distant tower 3x steadier). Off: the old path, the raw jittered scene at that size, kept for A/B. Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_upscaler_sharpness double 0.2 0.0 to 1.0 menu: GRAPHICS > DISPLAY > SHARPNESS; toml / CLI How much the FSR upscalers sharpen their picture (AMD's RCAS pass), 0 to 1: 0 adds no sharpening, 1 the most. DLSS has no sharpening. Live. src/gpu/temporal_backend.cpp
mcla_gpu_upscaler_zero_jitter bool false - debug menu: RENDERING > UPSCALER NO JITTER; toml / CLI While FSR or DLSS draws the scene: no sub-pixel jitter at all. The projection is not moved and the upscaler is told a jitter of 0 (one value, so the draws, the motion vectors and the upscaler agree). The upscaler then has no sub-pixel samples to rebuild detail from and the picture is no sharper than the render size; a flicker that follows the jitter phase is gone with it, one that stays is not the jitter's. For A/B. Live. Debug only. src/gpu/temporal.cpp
mcla_gpu_vendor_denoiser bool true - menu: GRAPHICS > DISPLAY > DLSS RAY RECONSTRUCTION or AMD FSR RAY REGENERATION; toml / CLI Defaults to ON where the hardware, driver and runtime files support it. A saved preference takes precedence. OFF uses LARecomp's denoisers. DLSS Ray Reconstruction needs DLSS upscaling and can require a restart. AMD FSR Ray Regeneration applies live. src/gpu/denoiser_setting.h
mcla_gpu_vol_amortize bool true - hidden DEBUG menu; toml / CLI Reuse light in steady parts of the beams and skip lamps outside the area being lit. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_vol_census int32 0 0 to 100000 toml / CLI Diagnostic: every Nth guest frame (and the first three frames with the main view), one log line of what the volumetric light did: what became of the frame, the collector's atlas, the fog quad's colour. 0: off. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_density double 1.0 0.0 to 50.0 toml / CLI Diagnostic: a multiplier on the haze's thickness the volumetric light uses (the look's own: 0.0012 per metre in a clear night, 0.008 in rain, 0.010 in fog; 1: as the look has it). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_early bool false - toml / CLI Diagnostic: adds the volumetric light at the game's mid-scene depth copy, before the fog and the particles, instead of at the game's copy of the main colour after them, to compare the two. Without it the light goes in at that copy and falls back to the mid-scene point by itself when no such copy comes. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_extinction double 0.25 0.0 to 1.0 toml / CLI Diagnostic: a multiplier on how much of the haze's own dimming the volumetric light applies to the picture (0.25: as the look has it; 0: it only adds light, 1: the full physical amount; the game's own fog dims the distance already). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_far double 0.0 0.0 to 1000.0 toml / CLI Diagnostic: how far in metres the volumetric light reaches (30 to the level's own, 120 on medium and 160 on high and ultra). 0: the level's. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_g_head double 0.6 0.0 to 0.95 toml / CLI Diagnostic: a multiplier on how strongly the look makes the haze scatter a car's headlight forward (0.6: as the look has it; oncoming lights glare in fog). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_g_lamp double 0.25 0.0 to 0.95 toml / CLI Diagnostic: a multiplier on how strongly the look makes the haze scatter a street lamp's light forward (0.25: as the look has it). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_g_sun double 0.6 0.0 to 0.95 toml / CLI Diagnostic: a multiplier on how strongly the look makes the haze scatter the sun forward (0.6: as the look has it; the look's value is 0.6 to 0.72, 0: evenly, toward 0.95: only toward the camera when looking at the sun). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_ground_height double 40.0 0.0 to 500.0 toml / CLI Diagnostic: a multiplier on the scale height of the thicker haze above the ground in the volumetric light (40: as the look has it, 0: no ground layer). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_ground_strength double 1.0 0.0 to 20.0 toml / CLI Diagnostic: a multiplier on how much thicker the look makes the haze at the ground than high above it (1: as the look has it, 0: none). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_head_strength double 1.0 0.0 to 50.0 toml / CLI Diagnostic: a multiplier on the cars' headlights' light in the volumetric light. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_history_medium bool false - toml / CLI Enable froxel history on Medium for comparison with Ultra. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_vol_inputs int32 3 0 to 3 toml / CLI Diagnostic: which of the game's lights the volumetric light reads: 1 the street lamps (the game's per-frame lamp list), 2 the cars' headlights (the headlight rig's lights and, where the shadow maps run, their shadows), 3 both (the default), 0 neither. A bit that mcla_gpu_vol_test uses for a test light is left to the test light. Live. Debug only. src/gpu/volumetrics_inputs.cpp
mcla_gpu_vol_keep_cones bool false - toml / CLI Diagnostic: draws the game's own cone meshes under the lamps (xrage_spotlightfog, in rain) as well as the volumetric light, to compare the two. Without it the cones are not drawn in a frame the volume was made. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_lamp_limit int32 0 0 to 48 toml / CLI Diagnostic: at most this many of the game's street lamps are put in the volumetric light (the brightest in view are kept, with hysteresis); 0: as many as the level reads (12 on medium, 32 on high, 48 on ultra). Live. Debug only. src/gpu/volumetrics_inputs.cpp
mcla_gpu_vol_lamp_strength double 1.0 0.0 to 50.0 toml / CLI Diagnostic: a multiplier on the street lamps' light in the volumetric light. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_near double 0.5 0.5 to 2.0 toml / CLI Start of the volumetric grid in metres. A higher start uses fewer depth slices. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_vol_noise double 0.35 0.0 to 1.0 toml / CLI Diagnostic: how much the haze's thickness varies from place to place in the volumetric light (0: even, 1: patches of clear air). Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_rain_scatter string off one of off, on debug menu: PICTURE FIXES > RAIN HEADLIGHT SCATTER FIX; toml / CLI Halves the rain contribution to volumetric headlight scatter. The clear and fog contributions and street lamp scatter keep their usual strength. Live. Debug only. src/settings/generated/settings_gpu.h
mcla_gpu_vol_stable bool true - toml / CLI Diagnostic: keeps the volumetric light steady in motion: a street lamp's glow is averaged over each slice of the light's grid instead of sampled once at a random place in it (so it no longer pulses as the camera moves and the history no longer has noise to average), a pixel at an edge of depth looks the light up at every sample of the picture's anti-aliasing instead of the first, the history's weight follows time, not the frame count, the lamps fade in a real 0.35 s whatever the frame rate, a shadowed headlight takes three taps of its shadow map along each cell of the grid, the history's beam follows a car's headlights where they moved, and a frame whose camera is not known takes the previous one moved on by its last step. False: the first version. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_sun_strength double 1.0 0.0 to 50.0 toml / CLI Diagnostic: a multiplier on the sun's light in the volumetric light. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_temporal bool true - toml / CLI Reuse light from previous frames where possible. Off updates the whole volume each frame. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_test int32 0 0 to 3 toml / CLI Diagnostic: adds a test light to the volumetric light, where the camera looks, to see its beams without the game's own lights: 1 a street lamp 8 m ahead and 4.5 m up (the game's street lamps are then not read), 2 a headlight (the rig's headlights are then not read), 3 both. A test light also keeps the haze at least 0.004 thick. 0: none. Live. Debug only. src/gpu/volumetrics_inputs.cpp
mcla_gpu_vol_view int32 0 0 to 3 toml / CLI Diagnostic: 1 shows only the light the volumetric light adds, in place of the picture (to see or measure how steady it is), 2 the same eight times brighter, 3 thirty-two times brighter (for the faint headlights), 0 the picture. The bloom and the tone map still follow it. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_vol_wind double 2.0 0.0 to 50.0 toml / CLI Diagnostic: how fast, in metres a second, the haze's patches drift in the volumetric light. Live. Debug only. src/gpu/volumetrics.cpp
mcla_gpu_volumetrics string auto one of auto, off, medium, high, ultra menu: GRAPHICS > LIGHTING AND SHADOWS > LIGHT BEAMS; toml / CLI Adds beams from street lamps and headlights. OFF, MEDIUM, HIGH or ULTRA. Applies live. src/gpu/volumetrics.cpp
mcla_gpu_vram_budget_mb uint32 0 - toml / CLI Test lever: pretend the video memory budget is this many MiB when the adapter's own is larger (0: the adapter's). Everything that asks the budget sees the smaller number against the real use: the caches' trimming, the room checks of frame generation and of the FidelityFX upscaler's contexts. The way to see the NO ROOM paths and the trimming on a card that has plenty (a 4 GB card is 3900). Live. Debug only. src/gpu/device.cpp
mcla_gpu_vram_log uint32 600 - debug menu: LOGGING > VRAM LOG EVERY; toml / CLI Log video memory usage and budget every N frames, rounded to the next check. 0 disables the periodic log. Debug only. src/gpu/vram_budget.cpp
mcla_gpu_vram_savings bool true - debug menu: RENDERER FIXES > VRAM SAVINGS; toml / CLI Share non-overlapping render targets, store reflection colour in a smaller format, and release histories for disabled effects. Live. Debug only. src/settings/generated/settings_gpu.h
precache_pipelines bool false - toml / CLI Prepares the graphics pipelines the game compiles while it starts, and closes, without starting the game: no window, no graphics output. The launcher runs this at the end of its setup (after the shader packs are built), so that the first start has no shaders to compile and no pipeline pending. It fills the graphics driver's own cache for this PC; it does not have to be repeated until the driver, the game files or LARecomp change (the next run notices and does nothing when everything is current). Progress is printed to the console. Exit code 0 when the pipelines are prepared or need nothing. Needs a restart. Debug only. src/bootprogress/larecomp_pipeline_build.cpp
precache_pipelines_backend string "" - toml / CLI With precache_pipelines: which graphics API to prepare. Empty (or auto) is the one the game runs on (graphics_backend). d3d12 or vulkan prepares that one; one API per run. Needs a restart. Debug only. src/bootprogress/larecomp_pipeline_build.cpp
precache_pipelines_force bool false - toml / CLI With precache_pipelines: prepare even when the last run says the pipelines are current. For after the graphics driver's shader cache was cleared (Windows' Disk Cleanup does that). Needs a restart. Debug only. src/bootprogress/larecomp_pipeline_build.cpp
precache_pipelines_threads int32 0 0 to 16 toml / CLI With precache_pipelines: how many threads compile the pipelines. 0 uses every processor but one. A lower number leaves the PC more usable meanwhile, and the preparation takes longer. Needs a restart. Debug only. src/bootprogress/larecomp_pipeline_build.cpp
shader_pack_dir string "" - toml / CLI The folder the shader packs (mcla_shaders.v8.pack and mcla_shaders_variants.v3.pack) are read from and built into. Empty: the cache/shaders folder next to the program or, where that folder cannot be written to, larecomp/cache/shaders in the local application data folder; a pack left in the program's assets folder by an older install is still used when there is none in that folder. When this is set, only this folder is used. Needs a restart. Debug only. src/gpu/shaders.cpp
shader_pack_threads int32 0 0 to 64 toml / CLI How many threads build the shader packs from your game files on the first start. 0 chooses by itself from the processor's cores and the free memory. A lower number leaves the PC more usable during the build, which then takes longer. Needs a restart. Debug only. src/bootprogress/larecomp_shader_build.cpp

Legacy native runtime (mcla_native_gfx*)

Not in the 0.11 game: the CMake option LARECOMP_NATIVE_GFX_LEGACY is off, because the runtime was not ported. The rows stay so that an old larecomp.toml keeps loading.

MCLA/NativeGfx (121)

Name Type Default Range / values Where Effect Source
mcla_exposure_log uint32 0 - toml / CLI TEMP DIAG: log the guest auto-exposure value this many times, one sample every 120 front-end camera updates. Runs on a GUEST hook, so it works with the native runtime on OR off -- which is the point: the native path renders menu camera 53 a uniform 1.8x brighter than the emulated one, and the emulated exposure has never been read. Debug only. src/mc_engine/camera/menu_camera.cpp
mcla_exposure_log_addr uint32 0x02D6C000 - toml / CLI TEMP DIAG: physical guest address mcla_exposure_log reads (the 1x1 luminance target). Debug only. src/mc_engine/camera/menu_camera.cpp
mcla_native_gfx_own_device bool false - toml / CLI Use native DeviceManager to own the D3D12 device and direct command queue instead of borrowing from RexGlue/Xenia provider. Enables high-performance adapter selection, Agility SDK features, and drops the shared submit mutex. Needs a restart. Debug only. src/native_gfx/d3d12/device_manager.cpp
mcla_native_gfx_exposure double 8.0 - toml / CLI Exposure multiplier applied by the present-time tonemap (HDR anchor -> LDR). The raw scene target is very dark (linear, unconverged exposure); this lifts it before the ACES curve and gamma. Only used when mcla_native_gfx_present_anchor is on. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_fxaa bool false - toml / CLI Run NVIDIA FXAA over the composite at present. The console had no anti-aliasing to inherit here -- the game renders unresolved -- so this is an addition, not a fidelity fix, and it is a whole-frame filter that deserves its own A/B. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_keep_idle_display bool true - toml / CLI Fix: the second Rate My Ride photo (and any picture grabbed late) comes out black. On the console the presented surface keeps its pixels from one frame to the next unless the game clears it; here every frame started from the runtime's stand-in clear. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_shadow_quads uint32 0 - toml / CLI TEMP DIAG: check this many times whether the four 640x640 quadrants of the resolved shadow atlas (0x06E65000) are distinct, one check every 180 published frames. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_exposure_probe uint32 0 - toml / CLI TEMP DIAG: read back the auto-exposure targets (1x1 at 0x02D6C000 and 4x4 at 0x02D6D000) this many times, one every 200 published frames, as raw floats. The native path renders cam 53 with its midtones +84 and 11.6% of the frame clipped white against the emulated path's 2.6%, with matching shadows -- the shape of a gain before the tonemap. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_lowres_addr uint32 0x02DE6000 - toml / CLI TEMP DIAG: guest address mcla_native_gfx_lowres_dump reads. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_lowres_w uint32 320 - toml / CLI TEMP DIAG: width for mcla_native_gfx_lowres_dump. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_lowres_h uint32 180 - toml / CLI TEMP DIAG: height for mcla_native_gfx_lowres_dump. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_lowres_dump uint32 0 - toml / CLI TEMP DIAG: dump this many raw copies of the guest memory behind the 320x180 post-process buffer at 0x02DE6000, one every 300 published frames. That buffer's resolve misses every frame (the key asks for R8G8B8A8, the only 320x180 pass in the pool is the HDR one), so a fetch of it reads whatever the title left in memory. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_rim_probe uint32 0 - toml / CLI TEMP DIAG: report this many xRimMain draws -- the vertex declaration, TEXCOORD0 of the first vertices, and VS constants 206..215 (tintColors). The wheel picks its paint slot with a0 = trunc(TEXCOORD0.z), so a wrong third component reads a neighbouring part's colour. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_aniso_census bool false - toml / CLI TEMP DIAG: count texture binds by whether the sampler is eligible for anisotropy and whether the texture actually has a mip chain to filter down. Anisotropy picks a finer level along the major axis, so a single-level texture makes a correct 16x sampler change nothing. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_ps_census uint32 0 - toml / CLI TEMP DIAG: every distinct pixel shader the scene runs -- draw count, the vertex declaration's COLOR0 format and offset, and the first bound textures -- dumped every N draws. The runtime's shader identity is NOT the identity column of shader_report.tsv; translate these with build_shader_pack.collect_shaders(). Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_eye_probe uint32 0 - toml / CLI TEMP DIAG: report this many draws of the character eye/teeth material (xCharacter_teeth_normalmap) with its tintColor constant and its bound textures. Chasing eyes that render black in the native path and normal in the emulated one. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_fxaa_dump uint32 0 - toml / CLI TEMP DIAG: write this many pre/post TGA pairs of the FXAA pass (native_gfx_fxaa_pre_N.tga / _post_N.tga). Both come from the same frame and the same submission, so the difference between them is the filter and nothing else. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_fxaa_threshold double 0.125 - toml / CLI FXAA edge threshold: the minimum local luma contrast, as a fraction of the brighter luma, before a pixel is filtered at all. Lower catches more edges and softens more of the frame; 0.333 is NVIDIA's fastest preset, 0.125 the default quality one, 0.063 the most aggressive. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_fxaa_subpixel double 0.75 - toml / CLI How much of FXAA's sub-pixel term is allowed through. That term is what handles thin features and lone pixels the edge walk cannot resolve -- wires, railings, distant lamp posts -- and it is also the part that blurs. 0 turns it off and keeps the image sharpest, 1 is the softest. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_present_anchor bool false - toml / CLI Continuous mode: present the anchor (raw scene target) instead of the readback (composite) pass. The continuous readback comes out flat/black while the anchor holds the real rendered scene, so this makes the native world visible while the composite-selection bug is still open. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_drawcap uint32 0 - toml / CLI Continuous mode: cap the number of native ANCHOR (main scene) draws recorded per frame. 0 = uncapped. A low value (e.g. 300) tests whether the DEVICE_HUNG TDR is aggregate GPU load rather than one bad draw: if capping stops the crash, it is load. Also a direct performance lever. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_auxcap uint32 8192 - toml / CLI Per-frame cap on AUXILIARY draws (shadow, light, reflection passes) the native runtime records. 0 = uncapped. Was a hardcoded 2600, which measurement showed saturating in dense scenes and silently dropping the very lighting passes it bounded. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_hangfind bool false - toml / CLI Diagnostic: in continuous mode, submit each recorded draw on its own and wait for it with a timeout. The draw whose shader spins forever (the DEVICE_HUNG TDR) is the one that times out; its vs/ps identity is written to native_gfx_hang.txt. Extremely slow -- a one-shot to name the culprit. Debug only. src/native_gfx/d3d12/frame_capture.cpp
mcla_native_gfx_own_swapchain bool false - toml / CLI Use NativeSwapChain (FLIP_DISCARD, tearing, frame latency waitable object) presenting directly to the HWND backbuffer, eliminating intermediate blits and enabling full ReShade / Reno DX DevKit visibility. Needs a restart. Debug only. src/native_gfx/d3d12/swapchain.cpp
mcla_native_gfx_disable_occlusion bool true - toml / CLI Select the guest's no-occlusion path (byte_8288D5D1 = 0) while the native backend is active. This backend has no command processor and cannot run the query, so the slot is refreshed forever and the body is never submitted again. Cost: geometry that is genuinely hidden is still drawn -- GPU time, never a missing object. Debug only. src/native_gfx/guest/occlusion.cpp
mcla_native_gfx_own_textures uint32 0 - toml / CLI Resource ownership, step two: who allocates the 52-byte D3DTexture header. 0 = the guest, as always. 1 = mirror and validate: the runtime allocates the header out of its own guest-visible heap, copies the guest's bytes in, checks the guest VA translates back to the same bytes, then frees it. Debug only. src/native_gfx/guest/texture_ownership.cpp
mcla_native_gfx_own_heap_kb uint32 0 - toml / CLI Size of the guest-addressable block the runtime allocates its D3D objects out of, in KiB. 0 uses the built-in default (4096). Rounded down to a power of two -- o1heap only uses the largest power-of-two span of its arena. Needs a restart. Debug only. src/native_gfx/guest/texture_ownership.cpp
mcla_native_gfx_texture_registry bool false - toml / CLI Record every texture the game creates: name, dimensions, format, and which road built it (a header placed over streamed resource memory, or a real D3DDevice_CreateTexture). Observation only -- the guest still owns and creates everything, the hook just reads the result. Debug only. src/native_gfx/guest/texture_registry.cpp
mcla_native_gfx_vblank_probe bool false - toml / CLI Read-only probe of the guest's vblank and flip machinery, for the port to a runtime with no command processor. Reports the vblank counter, the flip counter and the pending-flip queue indices in the D3DDevice, so the offsets the replacement will drive are proven while the emulated path still works. Writes nothing. Debug only. src/native_gfx/guest/vblank_probe.cpp
mcla_native_gfx_skip_draw_first uint32 0 - toml / CLI Bisection: first per-frame draw number to skip. The number is the draw's position within the frame, the same counter the report calls offered, and it restarts every frame. Inert until mcla_native_gfx_skip_draw_last is non-zero. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_skip_draw_last uint32 0 - toml / CLI Bisection: last per-frame draw number to skip; 0 disables skipping entirely. Set a range, look at the screen, halve the range that still shows the artefact. Eleven runs isolate one draw out of two thousand, and unlike a hypothesis it cannot be wrong -- which is why it exists after nine guesses failed on the black shards. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_dump_draw_first uint32 0 - toml / CLI First per-frame draw number to dump to native_gfx_draws.txt. Same numbering as the skip range, so a range narrowed by bisection can be pasted straight in. Inert until mcla_native_gfx_dump_draw_last is non-zero. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_dump_draw_last uint32 0 - toml / CLI Last per-frame draw number to dump; 0 disables. Writes shader ids, primitive type, render target, every vertex stream's guest base and stride, and the world-view-projection -- the fields that have actually explained artefacts on this path. The file is appended to and grows fast: narrow the range with the skip cvars first. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_fetch_size_unit uint32 4 - toml / CLI Bytes per unit of the vertex fetch constant's 24-bit size field. 0 uses the built-in 4. 4 is what BeginVertices' own packet implies -- it writes dword1 = (4*dwords) \ Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_unsupplied_drop bool false - toml / CLI Bisect switch: drop a draw whose shader declares a vertex attribute the vertex declaration does not supply, instead of binding a zero stream for it. The zero stream is the normal behaviour and the better one -- dropping loses real geometry, measured at 9243 display-shaped draws gutted per report when this was the default. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_unlock_invalidate bool false - toml / CLI Invalidate cached textures from the guest's own unlock instead of waiting for the page write watch to fault. D3DResource_Unlock flushes a dirty range the resource has been accumulating (BaseFlush at +0x14, MipFlush at +0x18, packed 16.16 in 128-byte units), and reading it costs two loads. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_lock_writeback bool true - toml / CLI Fix: photo mode and Rate My Ride pictures come out black. On the console a resolve writes main memory; here the resolved image only exists as a GPU copy, so the CPU read zeros. When the guest locks a surface the GPU produced, this copies that resolve back into guest memory at that moment, in the guest's own layout. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_resolve_cpu_writes bool true - toml / CLI Fix: the photo preview (and anything else the CPU writes over a resolve destination) shows an old GPU image. MCLA puts the photo preview texture at 0x06ACD000, the memory the motion blur's depth resolve uses, and the render-target bridge kept answering that address with the depth copy -- a near-black picture with the scene's outline. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_lock_writeback_dump bool false - toml / CLI TEMP DIAG for mcla_native_gfx_lock_writeback: after each write-back, read the guest memory back the way the photo grab does (untile, swap every dword, bytes 1..3 as R,G,B) and write it to native_gfx_lockwb_<address>.tga, plus the average colour in the log line. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_vinyl_diag bool false - toml / CLI TEMP DIAG: log every resolve into a texture with a mip chain (rage GenerateMipMaps targets, the vinyl composite among them) with its DestLevel, source lookup and the capture's draw tallies, and every lock of such a texture with its level. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_lock_dump_level0 bool false - toml / CLI TEMP DIAG: when the CPU locks level 0 of a k_8_8_8_8 texture with a mip chain (the vinyl composite), untile what guest memory holds at that moment into lockdump_<renderer>_<address>_<size>_<n>.tga. Works in both renderers, so the emulated path is the reference the native write-back is compared against. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx bool false - toml / CLI MCLA Native Graphics Runtime. OFF (default): the game renders through the normal Xenia-based path, nothing changes. ON: the native D3D12 backend is initialized and the bring-up instrumentation runs (see mcla_native_gfx_present for the presentation takeover). Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_firstdraw bool false - toml / CLI Execute ONE real MCLA draw through the native pipeline, into a dedicated render target, and write mcla_native_gfx_firstdraw.txt/.tga. Does not present and does not touch the guest render path, so it cannot fight the Xenia command processor. Runs once per session. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_capture uint32 0 - toml / CLI Accumulate this many guest draws of the main scene pass into one native render target and write mcla_native_gfx_frame.txt/.tga. 0 disables. Supersedes mcla_native_gfx_firstdraw when non-zero. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_capture_delay uint32 0 - toml / CLI Frame boundaries to skip before arming the one-shot capture. The early frames after boot show low-detail placeholder textures (LZX streaming has not caught up) and an unconverged HDR exposure, giving a dark, muddy image. Set e.g. 300 to capture a fully-streamed, well-exposed frame. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_auxstage uint32 0 - toml / CLI Continuous mode: automatic auxiliary-pass safety policy. 0 = stage 3 normally, but stage 2 on adapters with under 512 MiB dedicated VRAM; display/UI passes are not suppressed by this policy. 1 = acquire auxiliary targets, 2 = bind and clear without non-display auxiliary draws, 3 = draw all auxiliary passes. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_msaa_depth_cs bool true - toml / CLI Resolve a multisampled depth surface with the compute pass. Off restores the shipped behaviour, an all-zero depth copy, which is what killed the distance fog, the per-object contact shadow under vehicles and the depth of field's circle of confusion at the same time. Diagnostic only. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_depth_reclear_infer bool true - toml / CLI Let an ATLAS-shaped full-source depth resolve arm the depth re-clear on its own, on top of the clear the guest's resolve asked for. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_reclear_probe bool false - toml / CLI TEMP DIAG: log which path armed needs_depth_reclear and on what surface shape. Two places arm the same flag -- the shape inference in RenderTargetPool::NoteResolve and the guest's own clear request in NotifyResolve -- and once it is set they are indistinguishable, so attributing a wrong re-clear needs this. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_shadow_bias int32 16 - toml / CLI Depth bias, in D24 quanta, added to the 640x640 shadow pass. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_rectlist_nocull bool true - toml / CLI Disable face culling for kRectangleList draws. The Xenos rect primitive describes an AREA and generates its own triangles; synthesising the fourth corner on the CPU gives them a winding the guest never chose. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_exp_bias_unit bool false - toml / CLI Diagnostic: set gInvColorExpBias to 1.0 instead of multiplying the sent value by the target's 2^bias. Added to investigate over-bright sea: in the water reflection pass the product is 0.25, while in the scene it is 1.0. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_skip_water uint32 0 - toml / CLI Diagnostic: skip water draws by family, to find which one paints the white band. Bitmask: 1 = xCityOceanShore, 2 = xCityOceanWater, 4 = xCityOceanWaterLOD, 8 = xCityPondWater. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_pack_depth_stencil bool true - toml / CLI On every full-resolution depth resolve, build by compute two copies of the two planes: R32G32_FLOAT (depth in R, stencil/256 in G) for a k_24_8 fetch, and R8G8B8A8_UNORM in the component order the Xenos fetch returns for a k_8_8_8_8 fetch. The second is how the game's motion blur reads the vehicle id the scene wrote to stencil; without it the player's car is reprojected as static scenery and blurs. Costs two target-sized allocations per resolve address. Turn off only to bisect a problem. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_ab_cvar string "" - toml / CLI Performance A/B within one session: the name of a boolean cvar to flip every mcla_native_gfx_ab_frames frames. Each perfwin line in native_gfx_diag.txt is tagged ab=0/1 with the state it ran under, and settle=1 on the window right after a flip. Empty disables it. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_ab_frames uint32 240 - toml / CLI Frames between flips of mcla_native_gfx_ab_cvar; rounded to whole 60-frame report windows. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_dump_ps string "" - toml / CLI Diagnostic: dump every texture slot bound for draws whose pixel shader has this identity, in hexadecimal (for example 0x0F681CC854B766D4). Output goes to native_gfx_diag.txt as PSSLOTS lines, one per distinct slot, address, format, swizzle and origin combination. Empty = dump nothing. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_skip_ps string "" - toml / CLI Diagnostic: skip every draw whose pixel shader has this identity, in hexadecimal (for example 0xF43F1D5258D0F6EF). Empty = skip nothing. Shader identity is stable across frames, unlike a draw number, so it suits a post-processing pass that appears once per frame at a varying position. The ps id is logged by the DEPTHFETCH probe and in draw dumps. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_skip_punch bool false - toml / CLI Diagnostic: drop the minimap's circular punch draw. On, the 220x220 target should keep its square corners; if it looks identical with the punch on, the punch is changing no pixel at all. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_verify_textures bool true - toml / CLI Re-check a cached TEXTURE against the guest memory it was decoded from, once per entry per frame, and drop it when they differ. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_verify_regions bool true - toml / CLI Re-check a clean buffer region against guest memory once per frame before binding it, and re-upload when they differ. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_decl_float bool true - toml / CLI Read the two 32-bit float vertex declaration types at their measured width: 0x002C23A5 is FLOAT2 and 0x001A23A6 is FLOAT4, not FLOAT1 and FLOAT2. Off restores the previous (short) reading, for A/B. Measured with DECLGAP, which counts the bytes an element actually occupies: 0x001A23A6 spans 16 bytes across 7170 samples, 0x002C23A5 spans 8. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_reclear bool true - toml / CLI Honour a guest clear that arrives after the target was already cleared this frame, restricted to the pass's viewport. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_reclear_depth bool true - toml / CLI Extend mcla_native_gfx_reclear to a guest clear of depth/stencil ONLY (no colour), applied when the draw that consumes it is still on the surfaces the guest cleared. Off restores colour-only re-clears, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_reclear_depth_probe uint32 0 - toml / CLI TEMP DIAG: log depth/stencil-only guest clears that reach an already-cleared target (applied or not, and why) to native_gfx_diag.txt, one line per distinct case (target shape, shader, flags, decision) up to N cases, repeated at counts 10, 100, 1000... 0 = off. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_dumprt bool false - toml / CLI Diagnostic: write every large resolve destination to a .tga at the end of the capture. Counting a fetch as resolved only proves a resource was handed back, not that it holds the right pixels. Costs a full GPU stall per target, so it is off by default. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_present bool false - toml / CLI Native presentation takeover (smoke-test stage): suppress the guest swap and present the native frame instead. MUST stay off while the Xenia command processor is still consuming the game's draws: without swaps its D3D12 submission never closes and the GPU eventually TDRs (observed DEVICE_HUNG). Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_continuous bool false - toml / CLI EXPERIMENTAL gameplay mode: render every guest frame through the native pipeline and present it, instead of the one-shot capture. Keeps all caches across frames, so the HDR exposure adaptation converges. Does NOT suppress the guest swap (avoids the command-processor TDR), so the guest still runs underneath. Requires mcla_native_gfx. Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_upload_mb uint32 64 - toml / CLI Transient upload ring per in-flight frame, in MiB. 0 uses the built-in default. Geometry region uploads share this ring with constants and textures; at the old fixed 16 MiB the ring was exhausted by geometry on every frame, so no draw was ever recorded and the native runtime only published a frame when the geometry happened to fit. Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_region_kb uint32 128 - toml / CLI Ceiling on a merged geometry region, in KiB. 0 uses the built-in default. The buffer cache merges a request with every region it overlaps, and that union only grows -- one request bridging two regions swallows everything between them, which makes the result overlap the next request, and so on. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_resolve_shape_fallback bool true - toml / CLI When a colour resolve misses, retry the pool by SHAPE alone (same size, same depth format, same sample count) instead of also demanding the colour format the resolve-time registers name. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_clear_only_resolve bool true - toml / CLI Satisfy a colour resolve whose source pass was only CLEARED, never drawn into. Such a pass never asks the pool for a target, so the resolve is dropped and the destination keeps whatever guest memory held -- zero. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_clear_only_found bool true - toml / CLI Extend mcla_native_gfx_clear_only_resolve to a clear-only pass whose shape the pool already holds. The second resolve found the target the first one made and copied white. Applied only when the pending clear was made on the surface being resolved. Off restores the old behaviour, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_gen_mips bool false - toml / CLI Build a mip chain on the host for single-level, uncompressed 32-bit-per-texel textures, with a 2x2 box filter. Anisotropic filtering only picks a finer level along the major axis, so without a chain a 16x sampler changes nothing on these textures. This is an improvement, not parity: the console also aliased on these surfaces, so the default is off. Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_gamma_ramp bool true - toml / CLI Apply the guest display gamma ramp at present, which is what the emulated path does as the DC_LUT and the no-CP path never did. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_texture_swizzle bool true - toml / CLI Apply the fetch constant's 12-bit swizzle to the SRV's Shader4ComponentMapping instead of the D3D12 default. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_swizzle_by_source bool true - toml / CLI Decide whether a k_8_8_8_8 fetch's 0x60A swizzle still applies by where the texture came from instead of by its tiling. A render target served by the bridge is already in host RGBA order, so the guest's swizzle is cancelled; anything decoded from guest memory is in the guest's own layout and gets it, tiled or not. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_color_exp_bias bool true - toml / CLI Fold the bound render target's colour exponent bias back into gInvColorExpBias (constant register c27.x) on upload, for both shader banks. The bias is read from RB_COLOR_INFO in the device's register shadow, so this needs no command processor, no PM4 and no EDRAM. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_bind_memo bool true - toml / CLI Reuse the previous draw's texture binding when its 32 fetch constants are byte-identical and nothing has moved under them. Texture binding measured at 22ms of a 95ms frame -- about 63000 slot binds per frame at 350ns each -- and the per-slot work was already correct, so the only thing left to remove was doing it twice. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_resolve_variants bool true - toml / CLI Keep a resolve destination's copy when the guest resolves a different shape to the same address, and reuse it when that shape comes back, instead of destroying and recreating it. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_slot_cache bool true - toml / CLI Cache each texture SLOT bind for the rest of the frame, keyed by its six raw fetch-constant dwords: a hit hands back the descriptor indices without the texture cache, the render-target bridge or the descriptor maps. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_verify_per_frame bool true - toml / CLI Re-check a cached texture against guest memory once per guest frame, as mcla_native_gfx_verify_textures describes, instead of once per submitted batch. The batch counter advances ~14 times a frame, so every bound texture was being re-hashed that many times. Off restores the per-batch check, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_msaa_stencil bool true - toml / CLI With mcla_native_gfx_msaa on, resolve the scene depth's stencil plane too (sample 0, as the emulated resolve does for depth) into the resolved copy. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_stencil_probe uint32 0 - toml / CLI Diagnostic. Every N full-size depth+stencil packs, read back the stencil channel of the depth-as-8888 copy the car motion blur samples and log STENCILPROBE to native_gfx_diag.txt: share of pixels with a non-zero vehicle id and the ids seen. 0 disables it. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_region_memo bool true - toml / CLI Remember the geometry region each address resolved to, so a draw does not walk the region map again for a buffer the draw before it already used. The map holds several thousand regions and is searched twice per draw, for the vertex stream and the index buffer. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_submit_thread bool false - toml / CLI Hand each recorded submission to a dedicated thread that replays it onto the D3D12 command list and submits it, so the driver calls, Close and ExecuteCommandLists leave the guest's render thread. Implies mcla_native_gfx_record_replay. Off submits on the render thread, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_record_replay bool false - toml / CLI Record each submission's D3D12 commands into a buffer and replay them onto the real command list at submit time, instead of issuing them as they are made. The first step towards a submission thread: every cache and state decision stays where it is, only the driver calls move. Off issues them directly, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_inline_fenced bool true - toml / CLI Take rectangle-list inline vertices from the fence-protected per-slot upload ring instead of the inline vertex ring, which continuous mode rewinds at the start of every frame without waiting for the GPU. Off restores the old ring, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_inline_direct bool false - toml / CLI Copy every inline (BeginVertices) draw straight into the upload ring instead of using BufferCache. Off is the default because the direct path can stall MCLA; cached inline regions use exact per-block hashes on every draw so same-frame command-buffer rewrites do not flicker the 2D/UI. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_tex_cached_decode bool true - toml / CLI Untile and endian-swap texture levels in ordinary cached memory and copy the result to the upload ring in one pass, instead of swapping in place inside the ring. The ring is write-combined, so the in-place swap read uncached memory: copy_and_swap_16 was 16% of the render thread while driving. The uploaded bytes are identical. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_texinv_incremental bool true - toml / CLI Keep the texture invalidation index sorted by insertion instead of re-sorting all of it after every new texture, and leave removed entries in it until they outnumber the live ones. While driving it was being rebuilt several times a frame, ~3.4% of the render thread. Off restores the rebuild-on-change, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_pipeline_library bool true - toml / CLI Persist compiled D3D12 pipeline state objects (PSOs) to disk using ID3D12PipelineLibrary to eliminate runtime shader compilation stutter. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_gpu_profiler bool true - toml / CLI Query GPU hardware timestamps via ID3D12QueryHeap to measure exact GPU frame and pass execution durations. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_pix_markers bool true - toml / CLI Emit BeginEvent/EndEvent and SetMarker on D3D12 graphics command lists for RenderDoc, PIX, and NSight pass hierarchy inspection. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_enhanced_barriers bool true - toml / CLI Use D3D12 Enhanced Barriers (ID3D12GraphicsCommandList7) when supported by hardware and OS to minimize GPU pipeline flushes and transition overhead. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_gpu_untile bool true - toml / CLI Use compute shader untiling and endian swapping on GPU for uploaded textures to eliminate CPU decode overhead. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_overlap_index bool true - toml / CLI Find the geometry regions a guest write touches with a walk that stays correct when regions overlap (declined merges leave overlaps). The old binary search assumed disjoint regions and could skip a large region containing the write, losing the invalidation. Off restores it, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_watch_before_copy bool true - toml / CLI Re-arm a geometry region's page write watch before copying its bytes instead of after. Armed after, a write another guest thread makes between the copy and the re-arm raises no fault and leaves stale bytes in a region marked clean. Off restores the old order, for A/B. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_partial_reupload bool true - toml / CLI Re-send only the 4 KiB blocks of a geometry region that the page write watch or a guest unlock reported as written, instead of the whole region. Those ranges are exact to the page; measured in gameplay they add up to ~2 MB a frame while ~18 MB were being re-sent. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_streaming_frames uint32 3 - toml / CLI Consecutive frames of being written to after which a geometry region comes off the page write watch, or 0 to keep every region watched. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_streaming_sticky bool false - toml / CLI Hysteresis for fully hashed regions only. Sampled-hash geometry keeps the normal four-frame demotion so old configurations cannot leave it permanently outside the write watch. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_streaming_demote_frames uint32 30 - toml / CLI With mcla_native_gfx_streaming_sticky on, for fully hashed regions: clean frames (frames in which the region was drawn and its hashed blocks matched) before a streaming region goes back under the write watch. 0 never puts it back, which leaves every rewrite to the full hash. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_state_cache bool true - toml / CLI Send a draw only the pipeline state that changed since the last draw on the same command list: descriptor heaps, root signature, the four descriptor tables, PSO, stencil ref, blend factor, the three constant-buffer views, render targets, viewport, scissor, topology and the vertex/index buffers. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_aniso int32 -1 - toml / CLI Anisotropic filtering override, with the same numbering as the emulated path's anisotropic_override: -1 leaves the guest's own choice alone (the default), 0 disables it, and 1 to 5 force 1x, 2x, 4x, 8x or 16x. Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_alias_missed_resolve bool false - toml / CLI EXPERIMENT. A colour resolve with no matching pooled source is dropped; the emulated path cannot drop one, because it resolves out of EDRAM by address and always produces something. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_surface_key bool false - toml / CLI Include what the guest asked for -- its requested sample count and surface pitch -- in the render target pool's key, so two guest surfaces of the same shape stop sharing one pooled target. OFF BY DEFAULT BECAUSE IT MEASURED WORSE. Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_mrt uint32 0x3F - toml / CLI Second render target support, as a bitmask -- one bit per piece, so a fault can be bisected without a rebuild. 0 is exactly what the runtime did before; 0x3F is the lot. 0x01 the resolve honours RB_COPY_CONTROL.copy_src_select instead of always reading colour target 0. 0x02 RB_COLOR1_INFO attaches a second colour surface to the pass's target. 0x04 the pass's clear wipes that second surface too. 0x08 it is... Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_msaa uint32 0 - toml / CLI Multisample count for the HDR scene target: 2, 4 or 8. Needs a restart. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_guest_clear bool true - toml / CLI The guest clear reaches EDRAM through the command processor, which no-CP mode does not run, so today every fresh target is painted the debug colour. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_alpha_ref bool true - toml / CLI Feed SharedConstants.g_AlphaThreshold from RB_ALPHA_REF and RB_COLORCONTROL instead of the fixed 0.5 the bring-up used. The ALPHA lines the diagnostic asked for came back, and they settle it: every (func, ref) pair MCLA uses is func=4 (GREATER) with ref in {0, 0.003922, 0.007843, 0.015686} plus one func=5 (NOTEQUAL) ref=0. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_depth32 bool false - toml / CLI Give a guest kD24S8 depth surface a D32_FLOAT_S8X24 host format instead of the literal D24_UNORM_S8. The shadow atlas is why: each 640x640 cascade occupies 1449..6300 of the 16777215 D24 levels, because the light projection spans the city and a cascade is a sliver of it. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_half_pixel bool true - toml / CLI Fill SharedConstants.g_HalfPixelOffset with (-1/viewport_w, +1/viewport_h). 23 of the 25 vertex shaders in a captured frame end with SV_Position.xy += g_HalfPixelOffset.xy * w, the D3D9 -> D3D10+ pixel-centre correction; left at zero every draw lands half a pixel off the texel grid, which is where the soft 2D edges come from. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_swapped_texcoords bool true - toml / CLI Fill SharedConstants.g_SwappedTexcoords from the vertex declaration. A RAGE vertex packs a 32-bit POSITION and a 16-bit TEXCOORD in one stream, but a stream can only be byte-swapped at one width; swapped as 8in32 the 16-bit pair arrives as (v, u) and every texture renders transposed, which looks like a 90-degree rotation to the left. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_texcache_mb uint32 2048 - toml / CLI Byte budget (MiB) for the native texture cache. The cache is keyed by the fetch constant, so a streaming game keeps producing new keys as it pages geometry and textures in and out; without a budget every one of them stays resident for the session and the footprint grows without bound. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_texinv_index bool true - toml / CLI Apply queued texture invalidations through an index of the cache entries sorted by guest address, instead of walking every entry for every queued range. The write watch hands the texture cache every fault in the process, about 600 ranges a frame in gameplay against ~970 entries, and the walk measured 16.9% of the render thread. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_diag bool false - toml / CLI Master switch for the diagnostic probes on the draw path (the TEMP DIAG / TEMP INSTRUMENTATION blocks: MESHCHK, the index-range probe, UIQUAD, SRVMAP, the minimap and water traces, the per-shape std::set logs, the periodic 900-frame target dumps, the geometry phase timers). Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_census uint32 0 - toml / CLI Frame boundaries between memory census reports written to native_gfx_mem.txt: process commit/working set, DXGI local (VRAM) and non-local usage, and the live size of every native cache. Debug only. src/native_gfx/native_gfx.cpp
mcla_native_gfx_nocp_vsync bool false - toml / CLI Frame pacing for the no-command-processor mode: on = the guest video mode's refresh rate, off = 1000 Hz, matching what the emulated path does with vsync off. Debug only. src/native_gfx/nocp/nocp_app.cpp
mcla_native_gfx_geomdump bool false - toml / CLI Dump a per-draw geometry snapshot (streams, strides, input layout, index buffer, slicing) built from guest state, to mcla_native_gfx_geometry.txt. One entry per distinct draw shape. Debug only. src/native_gfx/telemetry.cpp
mcla_native_gfx_texdump bool false - toml / CLI Decode the first textures the game binds straight out of guest memory (fetch constant -> format -> untile) and write them to mcla_native_gfx_textures/ for offline inspection. This is the correctness test for the texture decoder against real game data; off by default because it writes tens of MB. Debug only. src/native_gfx/telemetry.cpp
mcla_native_gfx_telemetry bool false - toml / CLI Collect resource-usage telemetry (bound buffers, index buffers, texture fetch constants) while the native graphics runtime is active. Written to mcla_native_gfx_resources_*.csv. Off by default: it takes a mutex and two map lookups per fetch slot on every draw. Debug only. src/native_gfx/telemetry.cpp

Clone this wiki locally