Ambient light floor for dark rooms (VICTORY_AMBIENT_LEAST); title thread placement logged; i9-13900KF + RTX 4080 measurements #475
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/trustno1-coder--VIctory-NVIDIA!475
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-475"
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?
@s0ngo73 on GitHub · 2026-11-27 23:07 UTC · original
s0ngo73:pr/piso-de-luz-y-nucleos→main· +299 −4 · 6 files · 2 commits · openTwo switches, both off by default, plus what a day of A/B measuring on an Intel hybrid CPU found.
Test PC
1.
VICTORY_AMBIENT_LEAST: a floor for the indirect light (dark rooms and nights)The ambient estimate is made from what is on screen, so at night outdoors and in rooms no lamp reaches it is almost nothing and those places are black.
VICTORY_AMBIENT_LEAST=<level>keeps every point at least at that light, asconstant:<level>would give it (same colour as the constant). Also in the F1 menu: LIGHT FLOOR (DARK ROOMS) (OFF / 0.1 / 0.05 / 0.16).estimate:<share>:<least>(edsuuu/VI-BR-PORT 849a20b3) and betterVIctory-Nvidia'sVICTORY_AMBIENT_FLOOR; credited in the code.VICTORY_AMBIENT=0.8 VICTORY_AMBIENT_LEAST=0.1 VICTORY_AMBIENT_SHADE=0.5,0.4: interiors readable, no change in frame rate (18.5 real fps on Series S with DLSS Quality and frame generation, as without it).ambient::tests::least_settings;the_passes_buildbuilds the changed shader.2. The title's thread placement: logged, and
VICTORY_TITLE_FAST_CORESThe game imports
SetThreadGroupAffinityandGetLogicalProcessorInformationand places its own threads. The HLE kernel module now takesSetThreadGroupAffinity(api-ms-win-core-processtopology-*added to its DLLs) and logs the first 128 placements with what the mask holds (logical processors, cores, fast/slow, cores holding two of them).What it showed on the 13900KF: every placed thread stays inside logical processors 0-13 (seven P-cores with HT, the console's layout): masks
0x3fff,0xff(eight threads on four cores),0x1f00(about eleven threads on five logical processors),0x3f00,0x2000; some calls ask for mask0, which Windows refuses. P-core 7 and all sixteen E-cores are never asked for.VICTORY_TITLE_FAST_CORES=1gives those threads all P-cores instead (re-placed live underVICTORY_AB). Measured: no gain (+3.4 % time per draw, better in 14 of 34 paired phases), most likely because our submitting thread and its helpers are kept on the same cores. Kept off; the log is the useful part. Tests incores.rs.What we measured (might save others some runs)
All on the traffic road, Series S profile,
VICTORY_ABwith 15 s phases, each phase compared with its neighbours in ms per 1000 draws.VICTORY_FAULT_UNLOCKED=1helps: -3 to -4 % time per draw (43 phases, better in 25), no crashes. Worth considering as a default.Problems found (not fixed here)
Lockhart): Series S renders at 1280x720 at most.slDLSSGSetOptionsreturned 38 ("invalid state") 63 times and frame generation stayed on.-Res, soFULLSCREEN (NO BORDER)on a 4K screen is Windows' bilinear stretch (soft).df2daaf,indirect::tests::host_list_budget_starts_empty_at_each_submissionandindirect::tests::warp_batch_charges_every_executionfail on this PC with and without these changes.Checks
cargo test --workspace --locked --no-fail-fast: everything passes exceptindirect::tests::host_list_budget_starts_empty_at_each_submissionandindirect::tests::warp_batch_charges_every_execution, which fail the same way ondf2daafwithout these commits on this PC.cargo clippy --workspace --all-targets --all-features -- -D warnings: nothing in the changed files. It does not pass ondf2daafeither (e.g.victory-formats/src/texture.rs:1346,victory-gpu/src/queue.rs:1377,descriptor/host.rs:1324).VICTORY_AMBIENT=0.8 VICTORY_AMBIENT_LEAST=0.1 VICTORY_AMBIENT_SHADE=0.5,0.4) andVICTORY_TITLE_FAST_CORESmeasured withVICTORY_AB.🤖 Generated with Claude Code
@hazben on GitHub · 2026-11-28 02:13 UTC · original
Data point for the dark-room floor (#475): measurements of the ambient pass on main
f3534e6plus a counters-only change (a per-5 s line of the estimate's levels). RTX 4070 SUPER, DLSS Quality 1706x960 to 2560x1440, same save and spot in both runs, one run each, outdoors around the start area.1. The floor matters where little sky is on screen. The ambient pass's own level for the darkest 30 % of cells, by sky share of the screen (run at
VICTORY_AMBIENT=1.2, 108 lines):Garages and dense trees sit at 0.3-0.9 against 5-10 in the open. That is the case
VICTORY_AMBIENT_LEASTcovers. (Unverified: I did not check that these units are the onesLEAST=<level>uses.)2. It will not fix open-shade foliage. At one sunny tree-shade spot the estimate gave 3.4 to the darkest 30 % of cells, yet a quarter of the picture was 0-1/255 (foliage, a car's rear). So that black comes from somewhere downstream of the estimate (Likely: an occlusion term the left-out ray passes leave at about 0). A floor at 0.1 does nothing there.
3.
AMBIENTabove 1 overshoots its ratio. 1.2 to 2.5 should be 2.08x; the darkest 30 % of cells measured 3.17x (56 place-matched line pairs), because the stand-in's light comes back through next frame's estimate (the loopambient.rsdocuments). Darkest 25 % of one like-for-like shot: 2.65 to 5.70 of 255, pixels at 0-1/255 2.9 % to 0.4 %.VICTORY_AMBIENT_ONCE=1removes the loop.4. The 4x bound did not bind. Cells cut by it: mean 0.06 %, max 3 %.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.