Ray tracing: builder within a wait budget, recycled ray pages; opt-in descriptor-slot, ray-walker and water switches; counters and bench script #1046
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ldanyyl on 2026-11-28T12:07:47Z.
Fixes 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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ballsimulation on 2026-11-28T13:17:33Z.
@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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:23:14Z.
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