Hardware RT on a 5090: most of its cost is the copy back that 9a427c14 turns on. Which scene showed the DXR flicker? #4756
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#4756
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@frametrace on GitHub · 2026-12-01 05:24 UTC · original
Question first: which scene and which instrument showed the DXR lighting swapping between two states, the reason
9a427c14turned offVICTORY_WC_NO_BACKunder hardware RT? I can't reproduce it in the prologue, and I'd like to check there before proposing a change.What you see
Scope: one scene (the new-game prologue) on one card that isn't the limit. A card-bound GPU may gain less.
On a 5090, hardware RT (#3706) runs at about 62–72% of the RT-off frame rate, and the card isn't the limit. It's less busy than with RT off: about 61% against 72%.
Most of the difference is the copy back you noted in
9a427c14:VICTORY_WC_NO_BACK: copy back falls to 2.6 MB a frame. Frame time drops from 53.5 to 41.2 ms with frame gen on, and hardware RT runs at about 87–90% of RT off.The flicker isn't reproduced in the prologue. My instruments haven't seen the real flicker, so this isn't evidence it's gone. What I checked:
VICTORY_CLOBBER_WATCH(#4341): with the rule kept, there are about 47 "title bytes sent over shader writes" events a frame. RT off has about 30, and shipped hardware RT has none.GPU and driver
RTX 5090 32 GB, driver 616.92.
CPU, RAM and Windows version
16-core Ryzen 9, 64+ GB, Windows 11 Pro.
VIctory release or commit
v2026.11.30.03 + #3043, built from source, release. The local switch (
VICTORY_HWRT_WC_NO_BACK=1) sits on top of that, with #4341. #4341's path barely runs here (about 30 re-takes a run, 0 MB), so the result doesn't depend on it.Settings
VICTORY_HW_RT=1,VICTORY_BVH_BUILDER=0.VICTORY_FRAMEGEN=0).Per-run numbers
VICTORY_WC_KEEP_LEFT=0)Logs
Cleaned logs on request.
Are you working on a fix?
Not until the flicker scene is known. If it helps then, I can re-run the check there and open a draft PR with the switch off by default. #4527 may reach the same saving more safely, since it reads back on the first CPU access; I haven't tested it here.
@github-actions[bot] on GitHub · 2026-12-01 05:24 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU you have and which Windows version (10 or 11).
If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.
@frametrace on GitHub · 2026-12-01 05:35 UTC · original
Logs for the numbers above:
6 of the 13 runs, one per table row.
INDEX.txtlists all 13 with their fps and marks the 6 included. The rest are available on request.Local release builds from source. The rule-kept runs carry the unposted switch (
VICTORY_HWRT_WC_NO_BACK=1) on top of #4341, so a few log lines won't match upstream code. Each log's first line lists every switch it ran with.Clobber counts: the frame-gen-off runs have
VICTORY_CLOBBER_WATCH=1on. The 5 s count lines ("clobber watch (VICTORY_CLOBBER_WATCH), last 5 s: …") are where the per-frame event numbers come from.Cleaning:
%USERPROFILE%and the username%USERNAME%;<game>and the bench folder<bench>;<build>/<build-rule-kept>.Nothing else was changed.
logs-rtx5090-hwrt-copyback-v2026.11.30.03.zip
@KruIN689 on GitHub · 2026-12-01 09:29 UTC · original
Same finding on a CPU-bound PC (RTX 5080, Ryzen 9 9950X3D): with #4760 (which keeps
VICTORY_WC_NO_BACKunder hardware RT, alias-safe), roaming withVICTORY_HW_RT=1went from 25.4 / 22.2 fps to 29.5 / 29.3. The submitting thread got 5-9 ms a frame back, and the copies' data fell from 107-128 to 67-82 MB a frame. There was no lost device, and a captured outdoor scene showed no lighting swap. Numbers and limits: #4760Tested with the help of Claude Code (Claude Opus 5.5).