loader: LOD and cull switches that stay (VICTORY_LOD_SCALE, VICTORY_SMALL_CULL, VICTORY_VEHICLE_LOD_BIAS) #133
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!133
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-133"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@itsachudknocklife on GitHub · 2026-12-01 23:43 UTC · original
itsachudknocklife:pr-lod-switches→main· +398 −0 · 4 files · 1 commits · merged 2026-12-02 01:43 UTCWhat
Three opt-in launch switches (each off without it), next to the output-size ones:
VICTORY_LOD_SCALEs * 950 + 50)VICTORY_SMALL_CULLVICTORY_VEHICLE_LOD_BIASThey change the three places in
ApplySettingsthat copy the value into the engine's global. Each place is compared byte for byte first and left alone, with a log line, if it differs. No frame generation, resolution or shader change.Where it comes from
The places and globals are ToLIManl/VIctory-Hydra's (ecbd78be7). The code is American Victory's (c573c523), by way of anoyarou/VIctory-RDNA4-linux.
New here: the values are kept. Something stores 1.0 into the LOD scale later. The title's LOD start-up at +0x1df5040 does that, though I did not trace which store it was. The distance made from it stays. Logged once, some 40 s into a run:
So a small thread looks at the globals twice a second and puts them back. It starts only if a switch is set and its place matched.
Measured
RX 9070 XT, Ryzen 7 5800X3D, Wine 11.22, Series S profile, 1080p output, ray tracing off. Camera turned continuously on one spot, values swapped live every 4 s (13 turns), each turn against its neighbours:
lod_scale0.1 vs 0.6small_cull8 vs 2.5: -0.7 ms (+-0.7).vehicle_lod3 vs 0.5: +0.4 (+-1.3), no gain seen. Less detail is visible: models pop in much nearer.Not checked
🤖 Generated with Claude Code