Play: RAY TRACING runs on the card's ray tracing cores where it has DXR 1.1 (roaming 28 fps / 31 frames over 50 ms vs 14 / 485 in shaders) #4694
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!4694
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4693"
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?
@KruIN689 on GitHub · 2026-12-01 02:05 UTC · original
KruIN689:up/rt-switch-hw→main· +114 −2 · 5 files · 1 commits · openFixes #
What it changes
VICTORY_BVH_BUILDER=1) always ran the console's structure walk in shaders. On a card with ray tracing cores that is much the slower way since #3706.VICTORY_HW_RT=1when the game's card runs DXR 1.1. Hardware RT already turns the title's builder off when both are set.VICTORY_HW_RTgiven either way wins.VICTORY_RT_HARDWARE=0keeps the walk in shaders.victory run's start (play::prefer_hardware_rt_env), the one place both launchers go through (victory play, andscripts\play-nvidia.ps1'svictory run), before anything readsVICTORY_HW_RT.victory hardware-rtin a process of its own, asvictory shader-modelis, because a process keeps the first D3D12 runtime it loads. It is asked only when RAY TRACING is on and the switch is unset, so nobody else pays for it.Files:
apps/victory/src/{play,run,main}.rs,crates/victory-gpu/src/streamline.rs(card_hardware_rt),crates/victory-gpu/src/host/menu.rs(help text).How it was tested
VICTORY_BVH_BUILDER=1, walk in shaders): 16.3 / 12.1 fps, 375 / 595 frames over 50 ms per 1,000, 196 / 499 over 100 ms, mean p99 231 / 269 ms, card 99–100 % busy.VICTORY_HW_RT=1): 28.3 / 27.7 fps, 29 / 34 frames over 50 ms per 1,000, 2 / 2 over 100 ms, mean p99 50 / 50 ms, card 87–92 % busy.VICTORY_BVH_BUILDER=1throughscripts\play-nvidia.ps1. The log showsHLE XboxBvhBuilder constructed (hardware DXR 1.1)andthe title's structure builder off. Over 2 min: 27.3 fps, 24 frames over 50 ms per 1,000, no errors.victory hardware-rtprintsdxr 1.1there.cargo testfor the crates it touches: yes. The newray_tracing_takes_the_cards_cores_where_it_has_themcovers on, a card without DXR 1.1, the switch given,VICTORY_RT_HARDWARE=0, and RT off (the card is not asked there).cargo clippy -p victory-gpuon mainf5c3d243stops at #4635's newfont.rs/menu.rslints (too many arguments, a manualis_multiple_of, collapsibleifs). Those are not from this change; on our fork, where they are absent, both clippys are clean.Checked for overlap
Not tested: cards without DXR 1.1 (covered by the unit test only), AMD cards, and a cold first start, where the RT shaders are translated again.
AI use: Claude Code (Claude Opus 5.5) measured, wrote, tested and described this. Posted with the account owner's approval. Label: [pr-performance].
@frametrace on GitHub · 2026-12-01 05:26 UTC · original
Related: with hardware RT as the default, the copy back that
9a427c14turns on costs most of the gap to RT off on a 5090 (#4756).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.