Model detail range replaces the distant detail switch: lod_range scales the depth at which models leave their detailed level (1x, 1.5x, 2x, 3x or max) (#949)

The pick patched before (main+0x1ee8424) is reached through its vtable only when the method is overridden; the culling
passes run about 20 inlined copies of it, so the switch changed almost nothing. The lodrange set patches the two places
per version that compute the level depth B at model setup (the setter and its inlined copy); the slope of the coarser
levels follows from B there, and max takes B = 1e30. The menu row sits under Grass range, with Steady detail under load
after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-14 21:58:48 +03:00
1 parent 517a161457
commit cf3acd0a2f
11 files changed
+92 -48

No files matched your search

+9 -8
View File
@@ -222,14 +222,6 @@
# ground, roads and walls seen at a shallow angle sharp into the distance. Only filtered, mipmapped textures that tile
# are raised; shadow maps, data maps and screen-sized buffers keep the game's setting. Read at start.
# aniso = game
# Distant model detail: 1 keeps the detail models have up close at any distance, 0 (the default) lets the game switch
# to simpler versions as they recede (recomp/patches-v121.txt, set lod). Costs GPU time. Game versions 1.2.1 and
# 1.4.3. Read at start.
# lod_detail = 0
# Steady detail under load: 1 skips the game's setup for lowering model and texture detail when the frame rate drops,
# as the emulator mod "Disable LOD Quality Reduction" does (set steady); 0 (the default) leaves it. Game versions
# 1.2.1 and 1.4.3. Read at start.
# lod_steady = 0
# Colour adjustment of the picture, HUD included, before it is scaled to the window: brightness (-30 to 30, added in %),
# contrast and saturation (70 to 150 and 50 to 200 %), gamma (0.8 to 1.2, below 1 brightens dark tones). At 0, 100,
# 100 and 1 nothing runs. color_preset is the menu's profile (default, vivid, clarity, custom), which sets the four.
@@ -257,6 +249,15 @@
# it; the grass map's textures grow with it, so its detail per metre stays the game's, and the grass heap grows by about
# 9 MiB times (percent / 100)^2 - 1. Lower draws less grass. Read at start.
# grass_range = 100
# How far models keep their detailed levels before the game switches them to simpler ones: 100 (the game's), 150, 200
# or 300 percent of its depths, or max for the most detailed level at any depth (recomp/patches-v121.txt, set
# lodrange). Higher keeps cliffs, ruins and sky islands detailed further out and costs GPU time. Game versions 1.2.1
# and 1.4.3. Read at start.
# lod_range = 100
# Steady detail under load: 1 skips the game's setup for lowering model and texture detail when the frame rate drops,
# as the emulator mod "Disable LOD Quality Reduction" does (set steady); 0 (the default) leaves it. Leave it off on weak
# PCs, where that drop keeps the frame rate up. Game versions 1.2.1 and 1.4.3. Read at start.
# lod_steady = 0
# Screen-space contact shadows, strength in percent (0 = off): after the game lights its scene, each pixel traces a
# short way toward the sun through the depth buffer and darkens where something close blocks it, adding the small
# shadows at feet, under stones and in grass that the shadow maps miss. Read at start.