Ray tracing: builder within a wait budget, recycled ray pages; opt-in descriptor-slot, ray-walker and water switches; counters and bench script #1046
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1046
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1046"
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?
@ldanyyl on GitHub · 2026-11-28 12:07 UTC · original
ldanyyl:ray-tracing-fixes-and-switches→main· +3803 −180 · 26 files · 12 commits · closed without mergingFixes for the title's own ray tracing (
VICTORY_BVH_BUILDER=1), new opt-in switches for the descriptor slots, ray walkers and water light, counters, and a benchmark script. With every new switch off, the default path is VIctory-NVIDIA's, except for counters and log lines; the two ray-tracing budgets only act withVICTORY_BVH_BUILDER=1.Part of this is fxceless's work (credited with
Co-authored-byon those commits).Ray tracing (only with
VICTORY_BVH_BUILDER=1)VICTORY_BVH_BUILDER_WAIT_MS, default 2000: on by default, against the switch rule, because the old path ends the run.VICTORY_BVH_BUILDER_ON_THE_SPOT=1restores the old behaviour.memory.rs).New switches, all off by default (on with
=1)VICTORY_DYNAMIC_WAITalt: on and off in turns, for A/B)VICTORY_THIN_GATEVICTORY_TABLES_ONCEVICTORY_MEMORY_NEARVICTORY_WATER_TILE_SLOTSThe documentation is in
docs/fork-ray-tracing.mdand in comments where each switch is read.Counters and diagnostics
Benchmark
scripts/bench.ps1is based on PR #617. It runs the diagnostics build unattended throughvictory playwith chosen switches. It writes:framelog: frame timesline built from the frame meter's intervals;Options:
-RayTracing,-Dlss,-FrameGen,-Switches,-Seconds,-Warmup,-CaptureEvery,-Compare.Also
is_multiple_of,checked_div, explicit precedence), with no change in behaviour.Tests
On Windows (toolchain from
rust-toolchain.toml):cargo clippy --workspace --all-targets --locked -- -D warnings: cleancargo test -p victory-gpu --lib --locked -- --test-threads=1: 465 passedcargo test -p victory-shader --locked: 295 passedcargo test -p victory --locked: passedcargo xtask policy: okIn game, on a Ryzen 5 9600X with 32 GB and an RTX 5060 Ti 16 GB: Series X profile, 2560x1440, DLSS and frame generation off, diagnostics build of this branch, 4-minute windows with
scripts/bench.ps1.VICTORY_BVH_BUILDER=1These are single runs on one machine; the new switches were not A/B-measured on this base.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Hw2UBhLdHXyf9znVoP6cYo
- scripts/bench.ps1 starts the title through `victory play ... --set ...` and summarises the frame lines (median, 1 % low, draw bands), CPU, memory, GPU and video-memory samples, and compares earlier runs (-Compare). Options for ray tracing, DLSS, frame generation and the pipeline book. Run folders sit beside cache_dir, not in it. - A video-memory sample over 1 TB (a counter that underflowed) is left out of the mean and the peak, and the summary says how many were. - A comma inside a switch value ('A=1,2,3') stays in the value. - host.rs: the Meter writes a frame-times line every 5 s (diagnostics builds), the lengths taken from the frame meter's intervals. - capture.rs: a file named `now` in the capture folder saves the next frame, so a tool can look at the screen of a title running in the background. Co-Authored-By: Claude Opus 5.5 <[email protected]>@ballsimulation on GitHub · 2026-11-28 13:17 UTC · original
@ldanyyl, thanks for
scripts/bench.ps1. I've opened #1099 with your bench commit (7756cd98) on its own, so it can land without waiting for this PR's ray-tracing changes. The commit is unchanged and still yours as author. On top of it, #1099 adds-Route, a scripted walk that starts at the world's first frame (#1098).I tried it on main
63b902fefrom the free-roam save in #332. It worked unattended from the boot screens to the summary. Two runs loaded 6 s apart and still ended the route at the same spot.If #1099 lands first, this PR can drop its copy of the script. If you'd rather keep it here, tell me and I'll close #1099.
@trustno1-coder on GitHub · 2026-11-28 19:23 UTC · original
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed