Hardware RT on a 5090: most of its cost is the copy back that 9a427c14 turns on. Which scene showed the DXR flicker? #4756

Open
opened 2026-12-01 05:28:44 +00:00 by github-bot · 3 comments
Owner

@⁠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 9a427c14 turned off VICTORY_WC_NO_BACK under 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:

  • As shipped: about 36 MB a frame, about 29 ms of the copy-back thread's time per frame (it runs beside the submitting thread). RT off copies back 0.9 MB.
  • With a local switch that lets hardware RT keep 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.
5.2 min per run, prologue Frame gen on Frame gen off
Hardware RT as shipped 20.9 / 20.4 fps 21.3 / 20.2 fps
Hardware RT, rule kept 25.4 / 25.8 fps 28.0–29.8 fps (4 runs)
RT off 28.8 / 28.2 fps 33.3 fps
  • The frame-gen-off ratios rest on a single RT-off run.
  • p10 with frame gen on: about 13 → about 18.5 fps.
  • Per-frame TLAS/BLAS build counts are unchanged. I haven't checked that their inputs are current, so a CPU reader of those buffers could see stale data.

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:

  • By eye: the frames look right (a lit beach scene, no corruption). There was no synced frame-by-frame comparison against shipped hardware RT.
  • Frame bursts: a blink score over bursts captured at about 9 Hz doesn't separate shipped hardware RT, RT off and the rule kept.
  • 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.
    • Of the logged events, about 97–98% fall in buffers RT off also has them in, just more often.
    • About 2–3% (roughly 1 a frame) fall in buffers RT off never shows, mostly one 8 MB buffer.
    • I haven't checked whether anything reads a range between such an event and the next shader write.
  • Small read-back jumps: they happen in every setup, including as shipped, so they don't separate the cases.

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

  • Series X, 1440p, DLSS quality.
  • VICTORY_HW_RT=1, VICTORY_BVH_BUILDER=0.
  • Frame gen on (default) and off (VICTORY_FRAMEGEN=0).
  • New game from the pause menu, no input, 5.2 min of the prologue per run, arms interleaved.
Per-run numbers
Run fps p10 frame ms copied back / frame uploads / frame card busy
Hardware RT as shipped, frame gen on (2 runs) 20.9 / 20.4 11.9 / 14.9 53.5 36.4 MB 101 MB 61%
Rule kept, frame gen on (2 runs) 25.4 / 25.8 18.8 / 18.1 41.2 2.6 MB 57 MB 72%
RT off, frame gen on (2 runs) 28.8 / 28.2 21.9 / 22.0 37.2 0.9 MB 56 MB 72%
Hardware RT as shipped, frame gen off 21.3 / 20.2 14.0 / 13.7 60–61%
Rule kept, frame gen off (4 runs; the 1st and 3rd with #4341's fix off, VICTORY_WC_KEEP_LEFT=0) 28.9 / 28.2 / 28.0 / 29.8 17.9 / 15.0 / 16.8 / 20.9 77%
RT off, frame gen off 33.3 22.3 76%

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.

**@⁠frametrace** on GitHub · 2026-12-01 05:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4755) **Question first:** which scene and which instrument showed the DXR lighting swapping between two states, the reason 9a427c14 turned off `VICTORY_WC_NO_BACK` under 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: - **As shipped:** about 36 MB a frame, about 29 ms of the copy-back thread's time per frame (it runs beside the submitting thread). RT off copies back 0.9 MB. - **With a local switch** that lets hardware RT keep `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. | 5.2 min per run, prologue | Frame gen on | Frame gen off | |---|---|---| | Hardware RT as shipped | 20.9 / 20.4 fps | 21.3 / 20.2 fps | | Hardware RT, rule kept | 25.4 / 25.8 fps | 28.0–29.8 fps (4 runs) | | RT off | 28.8 / 28.2 fps | 33.3 fps | - **The frame-gen-off ratios** rest on a single RT-off run. - **p10 with frame gen on:** about 13 → about 18.5 fps. - **Per-frame TLAS/BLAS build counts are unchanged.** I haven't checked that their inputs are current, so a CPU reader of those buffers could see stale data. **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: - **By eye:** the frames look right (a lit beach scene, no corruption). There was no synced frame-by-frame comparison against shipped hardware RT. - **Frame bursts:** a blink score over bursts captured at about 9 Hz doesn't separate shipped hardware RT, RT off and the rule kept. - **`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. - Of the logged events, about 97–98% fall in buffers RT off also has them in, just more often. - About 2–3% (roughly 1 a frame) fall in buffers RT off never shows, mostly one 8 MB buffer. - I haven't checked whether anything reads a range between such an event and the next shader write. - **Small read-back jumps:** they happen in every setup, including as shipped, so they don't separate the cases. ### 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 - Series X, 1440p, DLSS quality. - `VICTORY_HW_RT=1`, `VICTORY_BVH_BUILDER=0`. - Frame gen on (default) and off (`VICTORY_FRAMEGEN=0`). - New game from the pause menu, no input, 5.2 min of the prologue per run, arms interleaved. <details><summary>Per-run numbers</summary> | Run | fps | p10 | frame ms | copied back / frame | uploads / frame | card busy | |---|---|---|---|---|---|---| | Hardware RT as shipped, frame gen on (2 runs) | 20.9 / 20.4 | 11.9 / 14.9 | 53.5 | 36.4 MB | 101 MB | 61% | | Rule kept, frame gen on (2 runs) | 25.4 / 25.8 | 18.8 / 18.1 | 41.2 | 2.6 MB | 57 MB | 72% | | RT off, frame gen on (2 runs) | 28.8 / 28.2 | 21.9 / 22.0 | 37.2 | 0.9 MB | 56 MB | 72% | | Hardware RT as shipped, frame gen off | 21.3 / 20.2 | 14.0 / 13.7 | | | | 60–61% | | Rule kept, frame gen off (4 runs; the 1st and 3rd with #4341's fix off, `VICTORY_WC_KEEP_LEFT=0`) | 28.9 / 28.2 / 28.0 / 29.8 | 17.9 / 15.0 / 16.8 / 20.9 | | | | 77% | | RT off, frame gen off | 33.3 | 22.3 | | | | 76% | </details> ### 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-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 05:28:46 +00:00
Author
Owner

@⁠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.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %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.

**@⁠github-actions[bot]** on GitHub · 2026-12-01 05:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4755#issuecomment-7301737234) 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. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%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.
Author
Owner

@⁠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.txt lists 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=1 on. The 5 s count lines ("clobber watch (VICTORY_CLOBBER_WATCH), last 5 s: …") are where the per-frame event numbers come from.

  • Cleaning:

    • the user folder reads %USERPROFILE% and the username %USERNAME%;
    • the game folder reads <game> and the bench folder <bench>;
    • the source build folders read <build> / <build-rule-kept>.

    Nothing else was changed.

logs-rtx5090-hwrt-copyback-v2026.11.30.03.zip

**@⁠frametrace** on GitHub · 2026-12-01 05:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4755#issuecomment-7301936615) Logs for the numbers above: - **6 of the 13 runs, one per table row.** `INDEX.txt` lists 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=1` on. The 5 s count lines ("clobber watch (VICTORY_CLOBBER_WATCH), last 5 s: …") are where the per-frame event numbers come from. - **Cleaning:** - the user folder reads `%USERPROFILE%` and the username `%USERNAME%`; - the game folder reads `<game>` and the bench folder `<bench>`; - the source build folders read `<build>` / `<build-rule-kept>`. Nothing else was changed. [logs-rtx5090-hwrt-copyback-v2026.11.30.03.zip](https://github.com/user-attachments/files/35657470/logs-rtx5090-hwrt-copyback-v2026.11.30.03.zip)
Author
Owner

@⁠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_BACK under hardware RT, alias-safe), roaming with VICTORY_HW_RT=1 went 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: #4760

Tested with the help of Claude Code (Claude Opus 5.5).

**@⁠KruIN689** on GitHub · 2026-12-01 09:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4755#issuecomment-7306773419) Same finding on a CPU-bound PC (RTX 5080, Ryzen 9 9950X3D): with #4760 (which keeps `VICTORY_WC_NO_BACK` under hardware RT, alias-safe), roaming with `VICTORY_HW_RT=1` went 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: https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4760 *Tested with the help of Claude Code (Claude Opus 5.5).*
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#4756
No description provided.