Repository navigation
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
|
239 |
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.
The car's ray tracing structures (your car and the cars beside it, the ones the camera does not see built from the game's own model data) feed four effects: your car's paint reflecting its own body and the cars beside it, the opponents' own paint reflecting the cars round them, the chrome of the other cars, and a ray traced term in the ambient occlusion and the contact shadows. They need a graphics card with DirectX Raytracing 1.1 and shader model 6.5, on Direct3D 12. On Vulkan they wait for Plume's ray query support (mzzvxm/plume pull requests 13 and 14, not merged yet): the log says [gpu] car ray tracing: not available: on Vulkan it waits for Plume's ray query support, the menu has no RAY TRACED value, and every effect below keeps its screen-space version. On a card that cannot trace, the same log line says why.
Only the RAY TRACED value of GRAPHICS > REFLECTIONS > CAR SELF-REFLECTIONS (mcla_gpu_car_selfrefl and mcla_gpu_car_selfrefl_rt) is in the pause menu; the rest follow it and are debug settings. Each one is on by default where the graphics card's class suits it (mcla_gpu_class, forced for a test), so the player does not switch anything:
| Effect | Settings | Low class (integrated graphics) | Mid class | High class |
|---|---|---|---|---|
| Your car's paint reflects its own body, ray traced |
mcla_gpu_car_selfrefl (menu), mcla_gpu_car_selfrefl_rt
|
off (as the car self-reflections are) | AUTO is on, ray traced where the card can; ON where it cannot | same as Mid |
| Other cars in the ray traced scene: opponents, traffic and parked cars show in your car's paint and chrome |
mcla_gpu_car_rt_cars, mcla_gpu_car_rt_cars_radius, mcla_gpu_car_rt_cars_traffic, mcla_gpu_car_rt_cars_model, mcla_gpu_car_rt_cars_memory, mcla_gpu_car_rt_cars_wheels, mcla_gpu_car_selfrefl_rt_parts (23: the other cars included) |
none | the nearest 2 within 10 m, 2 traffic cars; parts under 45 indices left out | the nearest 4 within 14 m, 4 traffic cars |
| Opponents' paint reflects the cars round them from their real shape |
mcla_gpu_car_rt_opp_refl, mcla_gpu_car_rt_opp_refl_rays, mcla_gpu_car_rt_opp_refl_texels
|
none | on, a budget of 200 thousand texels a frame | on, 500 thousand texels |
| The other cars' chrome (tailpipes, badges, trim) is dark under their own bodies |
mcla_gpu_car_chrome_rt_others, with mcla_gpu_car_chrome_occlusion (DEBUG > FIXES > CAR CHROME FIX) |
none (no other cars) | on | on |
| Ambient occlusion and contact shadows traced round the cars: the road between two cars, the far side of a wheel well, the car's own parts and its shadow on the road, exact |
mcla_gpu_ao_rt (auto, off, ao, contact), mcla_gpu_ao_rt_length, mcla_gpu_ao_rt_rays; mcla_gpu_contact_shadows_view 7 shows the sun term |
none (the occlusion and the contact shadows are off there) | on, 2 rays a pixel (the occlusion's HIGH) | on, 4 rays a pixel (ULTRA) |
The defaults mcla_gpu_car_rt_cars -1 and mcla_gpu_car_rt_cars_radius 0 take the class's numbers above; 0 cars is your car alone, as it was before the other cars were added, and the opponents' reflection, the other cars' chrome and the traced occlusion between two cars need them. mcla_gpu_car_rt_check and mcla_gpu_car_rt_view are the proof pass (it traces a ray through every vehicle pixel and compares the hit with the picture's depth), mcla_gpu_car_model_walk and the two mcla_gpu_car_rt_paint_* rows are for the cars the camera does not see.
Cost, from the project's own runs on an RTX 5080 (Direct3D 12, a race start with opponents beside the car, at 720p and at 1440p): the passes together are about 0.4 ms a frame (the structures 0.10 to 0.15 ms, the reflection 0.08 to 0.10 ms and its filter 0.03 ms, the traced occlusion and sun term 0.14 to 0.15 ms, the opponents' pass 0.03 ms). Tracing the other cars' chrome and letting the reflection hit the other cars (mcla_gpu_car_selfrefl_rt_parts 23 against 7) measured no difference. A car at full detail is 8 to 10 MiB of structures, and the cars together stay under 64 MiB. An integrated graphics card forced to the High class for a test spent about 17 ms a frame on these passes, which is why the Low class has none.
In the original game a car's headlights light nothing: a glow, a corona and a bright lens. HEADLIGHTS (mcla_gpu_headlights) makes them real spot lights, from dusk to dawn and only while a car's lights are on: the player's car, the nearest opponents and the nearest traffic cars, up to four at a time. They light the road, the world and the traffic cars' bodies. The city's lit shaders get a second variant for this, which the graphics card builds the first time the headlights show (a short stutter). With HEADLIGHTS off the game's own night is drawn as before.
LIGHT SHADOWS (mcla_gpu_light_shadows) makes those lights cast shadows, which the game does not draw for any light but the sun: the frame's opaque objects are drawn again from the lamps, depth only, into a small spot shadow atlas (512 by 512 texels a view on HIGH, 1024 by 1024 on ULTRA; HIGH shadows your headlights, ULTRA the nearest other car's too), and the headlights' light reads it. It runs only while a headlight is lit, in the game view, and its row is grey while HEADLIGHTS is off. It was called mcla_gpu_headlight_shadows, which still works as a name; it is meant to cover the street lamps' shadows too later.
Both rows are on GRAPHICS > LIGHTING AND SHADOWS, take effect at once, and have AUTO, which follows the graphics card's class (mcla_gpu_class, forced for a test):
| Setting | Low class (integrated graphics) | Mid class | High class |
|---|---|---|---|
HEADLIGHTS (mcla_gpu_headlights): auto, off, on
|
OFF | ON | ON |
LIGHT SHADOWS (mcla_gpu_light_shadows): auto, off, high, ultra
|
OFF | HIGH | ULTRA |
The rest are debug settings. For the headlights: mcla_gpu_headlight_strength (how strong), mcla_gpu_headlight_range (how far, in metres), mcla_gpu_headlight_cone (the cone's angle), mcla_gpu_headlight_night (when they are on: from the game's own lights by default, never, or always to look at them by day) and mcla_gpu_headlight_log (a census line every 300 frames: the lights picked, with their place and axis). For the shadows: mcla_gpu_headlight_shadow_view draws the atlas in a rectangle in the lower right corner of the picture, mcla_gpu_headlight_shadow_test makes a map from a light at the camera so that it can be looked at by day, and _skip, _cull, _views, _bias and _cone pick which draws and faces go into the maps, how many cars get a view, the depth bias and the cone cull.
Cost, from the project's own runs on an RTX 5080: the headlights about 0.04 ms a frame at 1080p and 0.06 ms at 4K (only at night, and only on the pixels the beams reach), the shadows about 0.01 to 0.03 ms more, plus the render thread's second pass over the frame's draws and 4 to 32 MiB of video memory.
| 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: 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_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_ghost_log_interval |
uint32 | 0 |
- | debug menu: RENDERING > 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 > IMAGE QUALITY > MSAA (label shows APPLYING); steps: off, 2 (2X), 4 (4X), 8 (8X); toml / CLI | MSAA of the images of the screen the game multisamples (M6d.2): off (1 sample), 2 (the console's), 4 or 8 samples on the host. The game itself always draws its own 2 sample layout; the host gives its images of the screen the samples chosen here, so its pause menu and map world view, which the game draws with 4 samples, get the same as the game view. Targets the game does not multisample, or that are not images of the screen, keep the game's samples. Live: a change is made between two frames, after the pipelines for the new sample count are made. While an upscaler (mcla_gpu_upscaler) runs, MSAA is 1 sample whatever this says (the upscaler smooths the picture, and MSAA under it only costs time); the choice is kept and comes back when the upscaler is off. | 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_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_aa |
string | off |
- | menu: GRAPHICS > IMAGE QUALITY > POST AA; toml / CLI | Anti-aliasing of the composed scene, before the UI (M6c): off, fxaa (FXAA 3.11, Xenia's preset) or smaa (SMAA 1x, preset HIGH). The image the game resolves into the front buffer includes it (photos too). Live. | src/gpu/post.cpp |
mcla_gpu_fsr |
bool | false |
- | menu: GRAPHICS > UPSCALING > 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 > UPSCALING > 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 > UPSCALING > 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 > UPSCALING > 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_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_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_anisotropy |
string | game |
- | menu: GRAPHICS > IMAGE QUALITY > ANISOTROPIC; toml / CLI | Anisotropic texture filtering: game (the game's own fetch constants), off, 2, 4, 8 or 16. Applies to mipmapped textures whose min, mag and mip filters are all linear. Live. | src/gpu/samplers.cpp |
mcla_ui_sharp |
bool | true |
- | menu: GRAPHICS > IMAGE QUALITY > SHARP UI; toml / CLI | Sharper HUD and menu art where the game's 720p bitmaps are blown up (a render scale above 1.25x: 1080p and 4K windows): the buttons, icons, panels and text are read with a sharper filter and their alpha edges steepened, so text stays about one pixel soft. Off, or at 720p: the game's own picture. Live. | src/gpu/ui_sharp.cpp |
mcla_ui_minimap_scale |
bool | true |
- | menu: GRAPHICS > IMAGE QUALITY > SHARP MINIMAP; toml / CLI | Draw the minimap, the phone screen and the pages of the pause menu, the garage and the GPS map at the render scale instead of the game's fixed sizes, so they come out as sharp as the rest of the picture at 1080p and 4K. At 720p it is the game's own either way. Costs video memory while a menu is up (about 50 MiB at 4K). Live. | src/gpu/side_view_ui_map.cpp |
mcla_ui_sharp_strength |
double | 1.0 |
0.0 to 2.0 | debug menu: 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_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 |
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, high, ultra
|
menu: GRAPHICS > LIGHTING AND SHADOWS > AMBIENT OCCLUSION; toml / CLI | Ambient occlusion: darkens creases, kerbs, the ground under cars and where objects meet, from the picture's depth, only on the sky light and not on the sun's (the game's own constants say how much of a surface's light is which). off, high (half resolution, 2 slices), ultra (full resolution, 3 slices) or auto (the default): off on an integrated graphics card, high on a discrete one with less than 5.5 GiB of video memory, ultra on the rest. The pause menu and the launcher show the same words. A value that is none of these (the low of an older larecomp.toml) is ignored and the setting runs as auto. Costs graphics card time, ultra more than high. Also drawn behind the pause menu and on the map, so a change made there shows at once. Live. | 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_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_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 > AO INTENSITY; toml / CLI | How strong ambient occlusion looks: light, default, strong or max. Each is a set of four numbers: how strongly it darkens, how far it looks for things that block the sky light, how hard the measure is pushed, and how much it also darkens the part of a surface the sun lights; the stronger ones reach farther and make every crease, corner and under-car shadow darker. Only used while mcla_gpu_ao is not off (the pause menu's AO INTENSITY row). 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 | auto |
one of auto, off, ao, contact
|
toml / CLI | Diagnostic: the ray traced part of the ambient occlusion and the contact shadows, where the graphics card can ray trace (Direct3D 12 with ray tracing 1.1): a few short rays from the pixels near your car and the cars beside it, against their real shape, darken what the camera does not see (the far side of a wheel well, the body over a tyre, the road at the foot of a car and between two cars) and shadow the cars' own parts and the road from the sun exactly. auto (the default): both, where the ambient occlusion or the contact shadows are on; off: the screen-space passes alone, to compare with; ao: the occlusion's rays only; contact: the sun's ray only. A graphics card that cannot ray trace uses the screen-space passes whatever this says. Live. Debug only. | 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_bloom_scale |
bool | true |
- | debug menu: 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_car_chrome_occlusion |
bool | true |
- | debug menu: 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_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 14 m of your car on the High class, 2 within 10 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_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, 10 to 14 m). The reflection reaches 4 m from your car's paint, so a car more than about 10 m away 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). 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_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 | Debug: the rays a texel of an opponent's paint casts: 0 (the default) by the budget (mcla_gpu_car_rt_opp_refl_texels), 4 the whole cone, 2 the outer pair, 1 the mirror ray. Live. Debug only. | src/gpu/car_rt_opp_refl.cpp |
mcla_gpu_car_rt_opp_refl_texels |
int32 | 0 |
0 to 8000 | toml / CLI | Debug: the work the opponents' ray traced reflection may spend a frame, in thousands of image texels of the cars' screen rectangles at the full cone of rays (0, the default: the graphics card's class decides: 500 on the High class, 200 on the Mid class, none on the Low class). Over it the pass casts fewer rays a texel (up to twice it: 2, over that: 1) and leaves the smaller cars out. 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_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 (one row with mcla_gpu_car_selfrefl_rt: AUTO, OFF, ON or RAY TRACED); toml / CLI |
Car self-reflections: your car's paint reflects its own body, which the game's paint does not: the wing shows in the trunk lid and the mirror in the door, and the reflection is darker where the body shades it, under a spoiler or in a wheel arch, and it also shows the car's own colour in the reflection. on is the one level; off leaves the game's paint as it is. auto (the default) is on for a discrete graphics card and off for an integrated one (a handheld, or the iGPU of a desktop CPU). Costs the graphics card a little while it is on (about 0.1 ms a frame at 4K on an RTX 5080). It works in the game, behind the pause menu and in the garage, not on the map. 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 | auto |
one of auto, off
|
menu: GRAPHICS > REFLECTIONS > CAR SELF-REFLECTIONS (RAY TRACED sets mcla_gpu_car_selfrefl to on and this to auto, ON sets this to off; RAY TRACED is listed only where the graphics card can ray trace); toml / CLI |
Ray traced car self-reflections: where the graphics card can ray trace (Direct3D 12 with ray tracing 1.1), your car's reflection of its own body comes from its real shape, not from the picture of the car on the screen: a part the camera cannot see (the back of the wing, a mirror's far side) shows in the paint as it does in a mirror, and thin parts are exact. auto (the default) is on there while the car self-reflections are on; off keeps the screen-space version everywhere. A graphics card that cannot ray trace uses the screen-space version whatever this says. 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_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 5 | 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 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 a part the camera sees, orange: on a part it does not). 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 > CAR SHADOWS; toml / CLI | Car shadow map: your car casts a shadow of its real shape on itself and on the road beside it. The game's own sun shadows draw the car in a rough low-detail form into maps whose texels are 1 to 25 cm, so the wing, the mirrors, the sills and the wheels cast no shadow of their own; this draws the car again from the sun, at full detail, into a small map fitted to it (2048 by 2048 on ultra, 1024 by 1024 on high), and the contact shadows read it. Where the map is drawn and the contact shadows are at full strength (the sun 12 degrees up or more, a dry road), the game's own sun shadows leave your car out, so its shadow on the road is the map's alone, with one edge and no second, grainier edge of the game's low-detail shadow round it (mcla_gpu_car_shadow_map_owns); with a lower sun or in rain the game's shadow is drawn as before. The map's edge is filtered as SHADOW FILTER (mcla_gpu_shadow_filter) says: the game's own ring of taps on game, a disk of taps on soft, a disk that widens with the distance from the part that casts it on pcss. It only runs while the contact shadows (mcla_gpu_contact_shadows) are on, in the game view, in daylight. off, high, ultra or auto (the default): ultra on a discrete graphics card, high on an integrated one. Costs a little graphics card time (the car's triangles drawn once more, depth only) and 8 or 32 MiB of video memory. 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_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); a choice of the player's own is never changed. Live. Debug only. | 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 | Contact shadows: the short sun shadows the game does not draw (under a car's sills, at the foot of a kerb or a wall, under props on the pavement), found from the picture's depth and put only on the sun's light, so they never darken what the game's own shadows already cover. The sun's share of the light is taken away per colour channel, not as one grey share, so a shadow keeps the cooler colour of the game's own shadows beside it instead of coming out darker and warmer. Early in the morning and in the evening, when the game draws no sun shadows at all, they are the only ones. They are left out at night and in rain. off, high (8 steps), ultra (16 steps) or auto (the default): off on an integrated graphics card, high on a discrete one with less than 5.5 GiB of video memory, ultra on the rest. The pause menu and the launcher show the same words. A value that is none of these (the low of an older larecomp.toml) is ignored and the setting runs as auto. They are worked out at the size the game is drawn at, so a higher render scale gives sharper shadows (only high, with the ambient occlusion not on ultra, works at half that size). Costs graphics card time, ultra more than high. Also drawn behind the pause menu and on the map. 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_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 > UPSCALING > 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_env_resolution |
string | auto |
one of auto, game, high, ultra
|
menu: GRAPHICS > REFLECTIONS > CAR REFLECTIONS; toml / CLI | How sharp the reflections in the paint, windows and bonnet of the cars are: the game draws the world around the car as a 512x256 picture for them to reflect, which is why the reflections look soft up close. game (the game's own 512x256), high (1024x512), ultra (1536x768), or auto (game on an integrated graphics chip or a card with less than about 6 GB of memory, high on any other card). Costs a little graphics card time and video memory (about 4 MiB for high, 16 MiB for ultra). Live. | src/gpu/side_view_env.cpp |
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 > UPSCALING > 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 > UPSCALING > 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 > UPSCALING > 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. Read when frame generation is switched on. Debug only. | src/gpu/frame_generation.cpp |
mcla_gpu_fsr31_mode |
string | native_aa |
- | menu: GRAPHICS > UPSCALING > 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 > UPSCALING > 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_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 | HDR output for an HDR10 display. off: the usual picture. auto: HDR while Windows has HDR turned on for the display the game is on, following Windows' HDR switch and the display the window is moved to. on: HDR even if Windows does not say its HDR is on; where the display or the driver cannot show it the usual picture is used and the log says why. The HUD and the menus are shown at your paper white setting; the game's lights, the sun, the sky at dusk and the headlights go above it (how far: mcla_gpu_hdr_highlights). Takes effect within a moment, at the end of a frame; the picture may flicker once while the window's swap chain is made again. | 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_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_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_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_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 4 | toml / CLI | Diagnostic: how many cars' headlights get a view in the headlight shadow maps, 1 to 4 (the lamps of one car share a view). 0: the level's own (1 on high, 2 on ultra). 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 | Headlights: the cars' headlights light the road, the world and the other cars at night (the game's own only glow). Your car, the nearest opponents and the nearest traffic cars each get a spot light in front of them, up to four at a time, from dusk to dawn. on is the one level; off leaves the night as the game has it. auto (the default) is on for a discrete graphics card and off for an integrated one (a handheld, or the iGPU of a desktop CPU). Costs the graphics card a little at night, only on the pixels the beams reach. Live; the first time the headlights show, the graphics card builds the lit shaders' variants (a short stutter). | src/gpu/headlight_rig.cpp |
mcla_gpu_light_shadows |
string | auto |
one of auto, off, high, ultra
|
menu: GRAPHICS > LIGHTING AND SHADOWS > LIGHT SHADOWS; toml / CLI | Light shadows: shadows from headlights (and later street lamps). The game draws no shadow from a light that is not the sun; this draws the scene's opaque objects again from the lights, depth only, into a small map (512 by 512 texels on high, 1024 by 1024 on ultra), and the lights' light reads it. high shadows your headlights, ultra the nearest other car's too. off, high, ultra or auto (the default): ultra on a fast graphics card, high on a medium one, off on an integrated one. It only runs while a headlight is lit, in the game view. Costs a little graphics card time and render thread time (the frame's opaque draws once more for each map) and 4 to 32 MiB of video memory. Live. The row is grey while HEADLIGHTS is off. It was called mcla_gpu_headlight_shadows; that name still works in larecomp.toml and on the command line. |
src/gpu/local_shadow.cpp |
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: 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_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_present_dither |
bool | true |
- | debug menu: 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_process_memory_log |
uint32 | 0 |
- | debug menu: RENDERING > 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_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 > ROAD REFLECTIONS; toml / CLI | How sharp the road reflection is: the wet roads, the shop and building windows and the water show a mirror image of the city that the game draws at 256x256 and stretches over the whole screen, which is why it looks soft. game (the game's own 256x256), high (512x512), ultra (768x768), or auto (game on an integrated graphics chip, high on any other card). Costs a little graphics card time and video memory (about 4 MiB for high, 13 MiB for ultra). 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_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_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_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 > SHADOW FILTER; toml / CLI | How the sun's shadows are filtered: game (the game's own: four taps at an angle that changes from pixel to pixel, a grainy edge), soft (more taps on a disk, a smooth edge without grain, of the same width as the game's, or narrower on a finer shadow map: SHADOW DETAIL), pcss (soft, with contact hardening: a shadow is sharp where it touches what casts it and softer with the distance from it, as the sun's own shadows are; an integrated graphics card gets soft). auto (the default) picks by the graphics card's class: game on the Low class (an integrated card), pcss on the Mid and High classes (the pause menu shows AUTO (PCSS)). Your car's own shadow (CAR SHADOWS) is filtered the same way. The disk is turned by noise from one pixel to the next only while a temporal upscaler (DLSS, FSR and the like) runs, whose history averages the noise out; with plain MSAA every pixel takes the same disk, so the edge has no grain. The sun's shadows show from 8 to 17 hours in clear weather. Costs graphics card time in the screen's shadowed pixels (pcss costs about the same as soft, measured: away from the edges it takes fewer taps). Live; the first time soft or pcss shows, the graphics card builds its shaders (a short stutter). | src/gpu/shadow_filter.cpp |
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_resolution |
string | auto |
one of auto, game, high, ultra
|
menu: GRAPHICS > LIGHTING AND SHADOWS > SHADOW DETAIL; toml / CLI | How fine the sun's shadows can be: the game draws them into four 640x640 maps in one 1280x1280 picture, which limits how sharp an edge can get. game (the game's own 1280x1280), high (2560x2560), ultra (3840x3840), or auto (game on an integrated graphics chip, high on any other card). With SHADOW FILTER on soft the edge of a shadow is half as wide on high and a third as wide on ultra; with the game's own filter it keeps its width and gets smoother. Costs a little graphics card time and video memory (about 25 MiB for high, 56 MiB for ultra, and as much again for the maps being drawn). The sun's shadows show from 8 to 17 hours in clear weather. Live; the first time it changes the graphics card builds its shaders (a short stutter). | src/gpu/side_view_shadow.cpp |
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_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 <a>..<b> over <s> 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 | Bounce light: the light a lit wall or the ground sends back onto the road, the sides of cars and the walls beside it, found from the picture, so a red wall tints the pavement by it and a street lamp's pool lights the wall next to it. It takes the place of part of the sky light the ambient occlusion darkens, so a lit area does not get brighter overall, and a flat surface stays as it was. Needs ambient occlusion (mcla_gpu_ao) on. off, high (a coarser search: 2 directions and 2 steps each; half resolution where the occlusion is high too), ultra (3 and 3 at full resolution) or auto (the default): off on every graphics card for now, until its cost is measured. The pause menu and the launcher show the same words. A value that is none of these (the low of an older larecomp.toml) is ignored and the setting runs as auto. Costs graphics card time, ultra more than high. Also drawn behind the pause menu and in the garage, not on the map. Live. | src/gpu/ao.cpp |
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_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 LIGHT STRENGTH; toml / CLI | How strong the bounce light looks: light, default, strong, stronger or strongest. Each is a set of four numbers: how much of the light the surroundings send back the picture gets, the most it may add to a pixel (a guard against noise in the dark), how far it looks for lit surfaces (5 to 16 metres, past the ambient occlusion's own reach), and the brightest light it may bring (never whiter than a white wall in full sun). The stronger ones lift shadows and the sides of cars more and look farther. Only used while the bounce light (mcla_gpu_ssgi) is on (the pause menu's BOUNCE LIGHT STRENGTH row). Live. | src/gpu/ao.cpp |
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_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_sun_shafts |
string | auto |
one of auto, off, light, default, strong, stronger, strongest, low, high
|
menu: GRAPHICS > LIGHTING AND SHADOWS > SUN SHAFTS; toml / CLI | Sun shafts: a low sun behind trees and buildings streams light across the scene, as light through a haze. They show at dawn and dusk (strongest between 2.5 and 27 degrees of sun height, none by day above 45 degrees, none at night or in rain) and only while the sun is on the screen or not far beyond its edge. The value is how strong they are: off is the game's own picture, then light, default, strong, stronger and strongest (1x to 5x the built-in strength; default is 2x). auto (the default) is default on a discrete graphics card and off on an integrated one (a handheld, or the iGPU of a desktop CPU). The ray quality follows the card by itself. low and high are values of an older version and mean default. Costs graphics card time only while they show. 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_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 | Traffic and the other AI cars cast into the sun's shadow map like the player's car, so the ground under them is dark (the game only draws the player's car into it). off: the game's own picture. near: the nearest few cars within a short distance of the camera. all: every car within a long distance (costs more graphics and processor time). auto (the default): near on a discrete graphics card, off on integrated graphics. Daylight only (the game has no sun shadow at night and in rain). Live: it applies to the next frame, to the cars already on the road. | 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_upscaler |
string | off |
- | menu: GRAPHICS > UPSCALING > 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_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 > UPSCALING > 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_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 | 0 |
- | debug menu: RENDERING > VRAM LOG EVERY; toml / CLI | Diagnostic: every this many frames (at the next check of the video memory, every 30 frames), log how much video memory the process uses against the budget the system gives it, and what the texture, resolve product, EDRAM target and resolve memory caches hold, whether or not memory is short. For a report of stutter or crashes on a card with little video memory. 0: off. Debug only. | src/gpu/vram_budget.cpp |
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 |
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.
| 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 |
LARecomp
Settings
Game Features
Mods
Content Modding
Development
Online
Server Hosting