Refreshes: a range with no journal writes whose pages are all taken skips the stale-page walk again (lost in v2026.11.30.01's rewrite) #4295

Closed
github-bot wants to merge 1 commit from github-bot/gh-4294 into main AGit
Owner

@⁠Lyrnc on GitHub · 2026-11-30 18:18 UTC · original
Lyrnc:perf/refresh-already-copied → main · +41 −5 · 1 files · 1 commits · closed without merging

Problem

Reported on palmlight (RTX 5080, HW RT roaming, 6-minute runs, not measured by us yet): v2026.11.30.01 runs at 18-21 fps against 25-29 on a v2026.11.29.01 build with our changes. Most of the gap is the submitting thread, +7 ms a frame: refreshes +4.1 ms (16.4 against 12.3 ms) at about the same count (6.5k against 6.8k a frame), so about 2.5 us a refresh instead of 1.8; copies in the card's memory +1.8 ms.

What this changes

Shadow::copy_stale was rewritten for v2026.11.30.01 (lock-free stamps published after the bytes land, the two ranged slots under a sequence lock, the per-range memo). An early exit that palmlight carried on the old code (5c36db66: skip the page walk when the journal has no writes for the range and every page is taken) did not come along. This puts it back on the new code:

  • With written empty, and either the two slots holding a range that holds this one (ranged_slots != 0) or every page's stamp nonzero, no page can be copied, stamped or counted by the memo, so the walk is left out. The range is noted as of this asking as before (note_ranged, split out of the end of copy_stale; it writes the two slots and the memo's slot, as that code did).
  • The memo's slot alone does not take the early way: the pages it alone covers are what MEMO_SAVED counts, so that diagnostic stays exact.
  • Measured on the original change (synthetic, 2,304 cases including partial ranges, subpage writes and first copies): the same copy intervals, byte totals and stamps; for an empty journal over 256 copied pages the walk took 456 ns before and 24 ns after (median).

Confirmed / not confirmed

  • Confirmed: it builds, and the tests below pass. The early way returns exactly what the walk returns in those cases (argued above; the test checks the condition).
  • Not confirmed: how much of the per-refresh regression this is. The frame line does not count the refreshes that reach copy_stale with nothing written, and no before/after has been run yet. Counter numbers (the frame line's "refreshes X in N flushes of M" on v2026.11.30.02 against this) are pending.
  • Two other suspects for the same regression, not changed here:
    1. #3762 fuses the no-op sift into the parallel update when the write watch is kept: a flush of more than 256 refreshes goes to the threads 64 at a time (it was 8), each chunk checking and copying its own. Its benchmark spreads the changed spans evenly; if the dirty refreshes of a flush lie together, one thread copies most of them. The ignored write_watched_submission_throughput with clustered changes would show it.
    2. The launcher's new VICTORY_CARD_ALL=1 gives every copy a card side, so every refresh's bytes also go up (that fits the +1.8 ms for copies in the card's memory). A run with VICTORY_CARD_ALL=0 separates the default's share from the code's.

Verification

Windows 11, rustc 1.98.1 (the pinned toolchain), RTX 5080 + Ryzen 7 9800X3D, own target directory, on e03424b3 (main 84bd61e2 + this commit):

  • cargo check -p victory-gpu --tests --locked -j 4: passes. Its one warning (Shadow::ranged never used) is main's: copy_stale calls ranged_parts since the rewrite.
  • cargo test -p victory-gpu --lib --locked -j 4 -- shadow:: host::refresh_tests: 92 passed, 0 failed, 10 ignored (benchmarks). Among them the randomized refreshed_ranges_hold_title_memory (600 rounds of writes, overlapping copies and 1-3 flushes: every refreshed range holds title memory) and the test kept from the original, shadow::empty_journal_refresh_requires_every_page_to_have_a_copy (every stamp pattern of eight pages, with and without a range taken whole, with and without a write).
  • cargo clippy -p victory-gpu --lib --tests --locked -j 4: two warnings, neither on a line this adds (main's Shadow::ranged; seed % 3 in a test in host.rs).

NOT tested

  • No game run. A bench A/B (camera spin, Series X 1440p, against main 84bd61e2) is queued; its numbers will be added here.
  • No synthetic before/after timing of copy_stale on the new code.

Overlap

  • #3762 (merged): the fused sift above; not touched.
  • #2049 (Rixnei, conflicting): a sparse copy_stale walk for ranged > 0 (only the written pages are visited). Same function, other case; this one is the empty-journal case. They compose; a rebase of either touches the same lines.
  • #3958 (vilaris, conflicting): which pages a refresh copies (write-watch coverage, copy stamps); composes.
  • #4245 (Raesdf): removes the unused Shadow::ranged, the warning above; no shared lines.
  • #3108, #614, #1556, #1298: cheaper no-op checks and fan-out of the refreshes; other functions.
  • #4207 (ours): fewer refreshes queued after title writes; other code.

AI use

Claude Code (Claude Opus 5.5) ported the earlier commit onto the rewritten code, compared the refresh path of v2026.11.29.01 and v2026.11.30.01, ran the checks above and wrote this text.

🤖 Generated with Claude Code

**@⁠Lyrnc** on GitHub · 2026-11-30 18:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294) `Lyrnc:perf/refresh-already-copied` → `main` · +41 −5 · 1 files · 1 commits · closed without merging ## Problem Reported on palmlight (RTX 5080, HW RT roaming, 6-minute runs, not measured by us yet): v2026.11.30.01 runs at 18-21 fps against 25-29 on a v2026.11.29.01 build with our changes. Most of the gap is the submitting thread, +7 ms a frame: refreshes +4.1 ms (16.4 against 12.3 ms) at about the same count (6.5k against 6.8k a frame), so about 2.5 us a refresh instead of 1.8; copies in the card's memory +1.8 ms. ## What this changes `Shadow::copy_stale` was rewritten for v2026.11.30.01 (lock-free stamps published after the bytes land, the two `ranged` slots under a sequence lock, the per-range memo). An early exit that palmlight carried on the old code (5c36db66: skip the page walk when the journal has no writes for the range and every page is taken) did not come along. This puts it back on the new code: - With `written` empty, and either the two slots holding a range that holds this one (`ranged_slots != 0`) or every page's stamp nonzero, no page can be copied, stamped or counted by the memo, so the walk is left out. The range is noted as of this asking as before (`note_ranged`, split out of the end of `copy_stale`; it writes the two slots and the memo's slot, as that code did). - The memo's slot alone does not take the early way: the pages it alone covers are what `MEMO_SAVED` counts, so that diagnostic stays exact. - Measured on the original change (synthetic, 2,304 cases including partial ranges, subpage writes and first copies): the same copy intervals, byte totals and stamps; for an empty journal over 256 copied pages the walk took 456 ns before and 24 ns after (median). ## Confirmed / not confirmed - **Confirmed:** it builds, and the tests below pass. The early way returns exactly what the walk returns in those cases (argued above; the test checks the condition). - **Not confirmed:** how much of the per-refresh regression this is. The frame line does not count the refreshes that reach `copy_stale` with nothing written, and no before/after has been run yet. Counter numbers (the frame line's "refreshes X in N flushes of M" on v2026.11.30.02 against this) are pending. - Two other suspects for the same regression, not changed here: 1. #3762 fuses the no-op sift into the parallel update when the write watch is kept: a flush of more than 256 refreshes goes to the threads 64 at a time (it was 8), each chunk checking and copying its own. Its benchmark spreads the changed spans evenly; if the dirty refreshes of a flush lie together, one thread copies most of them. The ignored `write_watched_submission_throughput` with clustered changes would show it. 2. The launcher's new `VICTORY_CARD_ALL=1` gives every copy a card side, so every refresh's bytes also go up (that fits the +1.8 ms for copies in the card's memory). A run with `VICTORY_CARD_ALL=0` separates the default's share from the code's. ## Verification Windows 11, rustc 1.98.1 (the pinned toolchain), RTX 5080 + Ryzen 7 9800X3D, own target directory, on e03424b3 (main 84bd61e2 + this commit): - `cargo check -p victory-gpu --tests --locked -j 4`: passes. Its one warning (`Shadow::ranged` never used) is main's: `copy_stale` calls `ranged_parts` since the rewrite. - `cargo test -p victory-gpu --lib --locked -j 4 -- shadow:: host::refresh_tests`: **92 passed, 0 failed, 10 ignored** (benchmarks). Among them the randomized `refreshed_ranges_hold_title_memory` (600 rounds of writes, overlapping copies and 1-3 flushes: every refreshed range holds title memory) and the test kept from the original, `shadow::empty_journal_refresh_requires_every_page_to_have_a_copy` (every stamp pattern of eight pages, with and without a range taken whole, with and without a write). - `cargo clippy -p victory-gpu --lib --tests --locked -j 4`: two warnings, neither on a line this adds (main's `Shadow::ranged`; `seed % 3` in a test in `host.rs`). ## NOT tested - No game run. A bench A/B (camera spin, Series X 1440p, against main 84bd61e2) is queued; its numbers will be added here. - No synthetic before/after timing of `copy_stale` on the new code. ## Overlap - #3762 (merged): the fused sift above; not touched. - #2049 (Rixnei, conflicting): a sparse `copy_stale` walk for `ranged > 0` (only the written pages are visited). Same function, other case; this one is the empty-journal case. They compose; a rebase of either touches the same lines. - #3958 (vilaris, conflicting): which pages a refresh copies (write-watch coverage, copy stamps); composes. - #4245 (Raesdf): removes the unused `Shadow::ranged`, the warning above; no shared lines. - #3108, #614, #1556, #1298: cheaper no-op checks and fan-out of the refreshes; other functions. - #4207 (ours): fewer refreshes queued after title writes; other code. ## AI use Claude Code (Claude Opus 5.5) ported the earlier commit onto the rewritten code, compared the refresh path of v2026.11.29.01 and v2026.11.30.01, ran the checks above and wrote this text. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Ported from palmlight 5c36db66 onto the rewritten `copy_stale` (the
lock-free stamps, the two slots and the memo of v2026.11.30.01), which
dropped it. With the write journal empty for the range and every page
taken (or a range holding it taken whole by the two slots), the walk finds
nothing to copy: the range is noted as of this asking (`note_ranged`, now
also the memo's slot) and nothing else is done. The memo's slot alone does
not take the early way, so `MEMO_SAVED`'s count stays exact.

palmlight's measurement of the original: 2,304 synthetic cases (partial
ranges, subpage writes, first copies) give the same copy intervals, byte
totals and stamps; for an empty journal over 256 copied pages the walk took
456 ns before and 24 ns after (median).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:22:57 +00:00
Author
Owner

@⁠nicolasabosch on GitHub · 2026-11-30 21:25 UTC · original

Tested: no measurable fps difference here (2 runs).

Tested on main e1251c31 with this PR (e03424b3) merged on top and nothing else changed. Release build, same profile as main.

Setup

  • PC: RTX 4070 Laptop 8 GB, i9-14900HX, 32 GB RAM, Windows 11.
  • Command: victory play --series-s --dlss performance --framegen 2, with no fps cap and the window minimized.
  • Route: scripted Enter presses into the world from a save, then the character idles there for 300 s.
  • fps is the mean of the last 40 host: reports, about 200 s. These are real frames, not generated ones.
  • The submit-thread figures come from the "preparing per frame, the submitting thread" line, also over the last 40 reports.
run fps ms/frame submit thread ms refreshes ms
main, 6 runs 15.96 – 18.76 (mean 17.35) 53.4 – 62.7 35.0 – 41.4 13.3 – 15.4
this PR, run 1 17.89 55.9 38.5 14.1
this PR, run 2 16.60 60.3 38.5 14.6

Both runs are inside main's own spread. On this laptop, identical main runs differ by up to about 2.5 fps, so only an effect of roughly 2–3 fps or more would be visible in this scene. The walk this PR shortens may well be faster. It just doesn't move the frame here.

Not tested: driving, camera turns, interiors, an image comparison, other GPUs.

**@⁠nicolasabosch** on GitHub · 2026-11-30 21:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294#issuecomment-7292383871) **Tested: no measurable fps difference here (2 runs).** Tested on main `e1251c31` with this PR (`e03424b3`) merged on top and nothing else changed. Release build, same profile as main. **Setup** - PC: RTX 4070 Laptop 8 GB, i9-14900HX, 32 GB RAM, Windows 11. - Command: `victory play --series-s --dlss performance --framegen 2`, with no fps cap and the window minimized. - Route: scripted Enter presses into the world from a save, then the character idles there for 300 s. - fps is the mean of the last 40 `host:` reports, about 200 s. These are real frames, not generated ones. - The submit-thread figures come from the "preparing per frame, the submitting thread" line, also over the last 40 reports. | run | fps | ms/frame | submit thread ms | refreshes ms | |---|---|---|---|---| | main, 6 runs | 15.96 – 18.76 (mean 17.35) | 53.4 – 62.7 | 35.0 – 41.4 | 13.3 – 15.4 | | this PR, run 1 | 17.89 | 55.9 | 38.5 | 14.1 | | this PR, run 2 | 16.60 | 60.3 | 38.5 | 14.6 | Both runs are inside main's own spread. On this laptop, identical main runs differ by up to about 2.5 fps, so only an effect of roughly 2–3 fps or more would be visible in this scene. The walk this PR shortens may well be faster. It just doesn't move the frame here. **Not tested:** driving, camera turns, interiors, an image comparison, other GPUs.
Author
Owner

@⁠Lyrnc on GitHub · 2026-12-01 01:41 UTC · original

Bench result: the camera-spin A/B from "NOT tested", run overnight. RTX 5080 16 GB, Ryzen 7 9800X3D, 32 GB RAM, Windows 11. Release builds, one shared shader cache (warmed first): main = 84bd61e2, R = this PR at e03424b3. Series X, 1440p, DLSS Quality, frame generation off, ray tracing off, same save. Standing from world+30 to 150 s, right stick held from 150 to 270 s, 360 s runs, two runs each, alternating with other arms in between. Ranges are the two runs.

build window fps >50 ms /1000 >100 ms /1000 submitting thread, ms/frame of it: refreshes, ms flushes /frame refreshes asked /frame ("of N") known to copy nothing /frame for copies in the card's memory, ms texture refreshes, all threads, ms
main standing 29.8-30.2 74-77 2.0-3.1 29.3-29.8 11.1-11.6 44.3 7,023-7,097 5,841-5,916 4.5-4.6 5.1-5.3
main turning 23.2-24.1 329-352 4.6-7.8 35.0-36.0 15.3-16.0 54.3-54.6 7,335-7,377 6,101-6,138 4.6-4.7 8.6-8.8
R standing 29.9-30.3 65-67 2.0-3.1 29.3-29.5 11.1-11.2 43.7-44.4 6,997-7,074 5,820-5,890 4.6 5.3
R turning 23.9-24.0 340-347 5.7-7.8 34.5-34.8 14.9-15.4 55.0-55.2 7,284-7,464 6,053-6,234 4.6-4.8 8.4-8.9

No device removed, DRED or "did not close" line in any run. The "texture picked by index changed after its upload with nothing to tell of it" warning came 5-7 times per R run and 4-34 per main run.

What this shows

  • No measurable change on this bench. Turning, the refreshes are 14.9-15.4 ms against 15.3-16.0 and the submitting thread 34.5-34.8 against 35.0-36.0. Both overlap main's range or sit just under it. fps and slow frames are the same.
  • The counters the frame line has do not move. Flushes, refreshes asked, and those known to copy nothing stay at main's values. That fits the description's note that the frame line does not count the refreshes that reach copy_stale with nothing written, so the early exit itself is not visible here.

What it does not show

  • Not the reported scenario. The report this answers was HW RT roaming on v2026.11.30.01 against a 29.01 build. This was a ray-tracing-off camera spin on 84bd61e2, so it says nothing about how much of that +4.1 ms the early exit wins back.
  • No count of early exits. A counter of ranges that took the early exit would show directly whether it fires on this path.
  • No VICTORY_CARD_ALL=0 arm (the description's second suspect).

AI use: Claude Code (Claude Opus 5.5) ran these on our bench queue, parsed the run logs with its own scripts, and wrote this comment.

**@⁠Lyrnc** on GitHub · 2026-12-01 01:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294#issuecomment-7297792589) Bench result: the camera-spin A/B from "NOT tested", run overnight. RTX 5080 16 GB, Ryzen 7 9800X3D, 32 GB RAM, Windows 11. Release builds, one shared shader cache (warmed first): **main** = 84bd61e2, **R** = this PR at e03424b3. Series X, 1440p, DLSS Quality, frame generation off, ray tracing off, same save. Standing from world+30 to 150 s, right stick held from 150 to 270 s, 360 s runs, two runs each, alternating with other arms in between. Ranges are the two runs. | build | window | fps | >50 ms /1000 | >100 ms /1000 | submitting thread, ms/frame | of it: refreshes, ms | flushes /frame | refreshes asked /frame ("of N") | known to copy nothing /frame | for copies in the card's memory, ms | texture refreshes, all threads, ms | |---|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | main | standing | 29.8-30.2 | 74-77 | 2.0-3.1 | 29.3-29.8 | 11.1-11.6 | 44.3 | 7,023-7,097 | 5,841-5,916 | 4.5-4.6 | 5.1-5.3 | | main | turning | 23.2-24.1 | 329-352 | 4.6-7.8 | 35.0-36.0 | 15.3-16.0 | 54.3-54.6 | 7,335-7,377 | 6,101-6,138 | 4.6-4.7 | 8.6-8.8 | | R | standing | 29.9-30.3 | 65-67 | 2.0-3.1 | 29.3-29.5 | 11.1-11.2 | 43.7-44.4 | 6,997-7,074 | 5,820-5,890 | 4.6 | 5.3 | | R | turning | 23.9-24.0 | 340-347 | 5.7-7.8 | 34.5-34.8 | 14.9-15.4 | 55.0-55.2 | 7,284-7,464 | 6,053-6,234 | 4.6-4.8 | 8.4-8.9 | No device removed, DRED or "did not close" line in any run. The "texture picked by index changed after its upload with nothing to tell of it" warning came 5-7 times per R run and 4-34 per main run. **What this shows** - **No measurable change on this bench.** Turning, the refreshes are 14.9-15.4 ms against 15.3-16.0 and the submitting thread 34.5-34.8 against 35.0-36.0. Both overlap main's range or sit just under it. fps and slow frames are the same. - **The counters the frame line has do not move.** Flushes, refreshes asked, and those known to copy nothing stay at main's values. That fits the description's note that the frame line does not count the refreshes that reach `copy_stale` with nothing written, so the early exit itself is not visible here. **What it does not show** - **Not the reported scenario.** The report this answers was HW RT roaming on v2026.11.30.01 against a 29.01 build. This was a ray-tracing-off camera spin on 84bd61e2, so it says nothing about how much of that +4.1 ms the early exit wins back. - **No count of early exits.** A counter of ranges that took the early exit would show directly whether it fires on this path. - No `VICTORY_CARD_ALL=0` arm (the description's second suspect). AI use: Claude Code (Claude Opus 5.5) ran these on our bench queue, parsed the run logs with its own scripts, and wrote this comment.
Author
Owner

@⁠davemathews12 on GitHub · 2026-12-01 01:49 UTC · original

I checked the early return against the walk it skips, on e03424b. It is exactly equivalent:

  • With written empty, every page's write is 0, so the walk copies a page only when taken = max(cur, ranged) == 0.
  • The early return needs ranged_slots != 0 (so ranged != 0) or every cur != 0. Either way taken != 0 for every page: the walk would copy nothing, stamp nothing, and still end in note_ranged, which the early path also calls.
  • MEMO_SAVED: the walk counts a page only when without = max(cur, ranged_slots) == 0, which can't happen under either condition. The count stays exact, as the description says.
  • Not covered (falls through to the walk): the memo's slot alone, and any journal entry in written, even one outside the range. That is conservative.
  • The stamp slice has the same bounds as the walk's indexing (page - base over from/PAGE..=last), so it adds no new panic.

On the failed check: its Clippy warnings are the two main already has (Shadow::ranged never used, seed % 3 in host.rs). I see the same pair on 7d93ee07 without this change, so it isn't this PR. #3530 fixes them.

Code read only, no game run. The A/Bs above already cover that.

**@⁠davemathews12** on GitHub · 2026-12-01 01:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294#issuecomment-7297939004) I checked the early return against the walk it skips, on e03424b. It is exactly equivalent: - With `written` empty, every page's `write` is 0, so the walk copies a page only when `taken = max(cur, ranged) == 0`. - The early return needs `ranged_slots != 0` (so `ranged != 0`) or every `cur != 0`. Either way `taken != 0` for every page: the walk would copy nothing, stamp nothing, and still end in `note_ranged`, which the early path also calls. - `MEMO_SAVED`: the walk counts a page only when `without = max(cur, ranged_slots) == 0`, which can't happen under either condition. The count stays exact, as the description says. - Not covered (falls through to the walk): the memo's slot alone, and any journal entry in `written`, even one outside the range. That is conservative. - The stamp slice has the same bounds as the walk's indexing (`page - base` over `from/PAGE..=last`), so it adds no new panic. On the failed `check`: its Clippy warnings are the two `main` already has (`Shadow::ranged` never used, `seed % 3` in host.rs). I see the same pair on 7d93ee07 without this change, so it isn't this PR. #3530 fixes them. Code read only, no game run. The A/Bs above already cover that.
Author
Owner

@⁠KruIN689 on GitHub · 2026-12-01 02:56 UTC · original

The HW RT roaming case from "not tested", on the PC that first reported the gap. RTX 5080 16 GB (driver 621.40), Ryzen 9 9950X3D, 47 GB, Windows 11. Series X, native 1440p, DLSS and FG off, VICTORY_HW_RT=1.

Method: e03424b3 alone cherry-picked onto our fork's main (upstream 84bd61e2 + the spread sweep, #3272, #3063/#3067, #4234). Release builds, auto-driven roaming (walk and drive), 2+2 alternating runs of 6 min in one session, stats over the last 4 min:

run fps frames over 50 ms per 1,000 mean p99 submitting thread refreshes count a frame per refresh
with 27.4 59 53.8 ms 30.7 ms 11.7 ms 7,060 1.66 µs
without 26.8 73 55.1 ms 31.2 ms 12.0 ms 6,368 1.88 µs
with 27.8 27 49.3 ms 30.3 ms 12.0 ms 6,507 1.84 µs
without 20.6 286 76.4 ms 38.9 ms 15.0 ms 9,004 1.67 µs
  • Both pairs favour the PR on frames over 50 ms and p99. The second "without" run met a heavier stretch, though (9,004 refreshes a frame against 6,400–7,000 in the others), so I can't credit the gap there to the PR.
  • Per-refresh cost shows no consistent drop: 1.66 / 1.84 µs with it, 1.88 / 1.67 µs without. That fits nicolasabosch's and the camera-spin results. Here the early way seems to save little on top of what the rewritten path already skips.
  • Safety: no errors, no device loss, no visual problems noticed in either build.

So: neutral to slightly positive with HW RT while moving, and no harm. Since it restores exactness-preserving behaviour (davemathews12's check above), I see no reason against it.

(Measured and written with Claude Code, for KruIN689.)

**@⁠KruIN689** on GitHub · 2026-12-01 02:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294#issuecomment-7299158749) The HW RT roaming case from "not tested", on the PC that first reported the gap. RTX 5080 16 GB (driver 621.40), Ryzen 9 9950X3D, 47 GB, Windows 11. Series X, native 1440p, DLSS and FG off, `VICTORY_HW_RT=1`. Method: `e03424b3` alone cherry-picked onto our fork's main (upstream 84bd61e2 + the spread sweep, #3272, #3063/#3067, #4234). Release builds, auto-driven roaming (walk and drive), 2+2 alternating runs of 6 min in one session, stats over the last 4 min: | run | fps | frames over 50 ms per 1,000 | mean p99 | submitting thread | refreshes | count a frame | per refresh | |---|---:|---:|---:|---:|---:|---:|---:| | with | 27.4 | 59 | 53.8 ms | 30.7 ms | 11.7 ms | 7,060 | 1.66 µs | | without | 26.8 | 73 | 55.1 ms | 31.2 ms | 12.0 ms | 6,368 | 1.88 µs | | with | 27.8 | 27 | 49.3 ms | 30.3 ms | 12.0 ms | 6,507 | 1.84 µs | | without | 20.6 | 286 | 76.4 ms | 38.9 ms | 15.0 ms | 9,004 | 1.67 µs | - **Both pairs favour the PR** on frames over 50 ms and p99. The second "without" run met a heavier stretch, though (9,004 refreshes a frame against 6,400–7,000 in the others), so I can't credit the gap there to the PR. - **Per-refresh cost** shows no consistent drop: 1.66 / 1.84 µs with it, 1.88 / 1.67 µs without. That fits nicolasabosch's and the camera-spin results. Here the early way seems to save little on top of what the rewritten path already skips. - **Safety:** no errors, no device loss, no visual problems noticed in either build. So: neutral to slightly positive with HW RT while moving, and no harm. Since it restores exactness-preserving behaviour (davemathews12's check above), I see no reason against it. (Measured and written with Claude Code, for KruIN689.)
Author
Owner

@⁠Lyrnc on GitHub · 2026-12-01 04:11 UTC · original

Thanks @⁠nicolasabosch and @⁠davemathews12, and @⁠KruIN689 for the HW RT case.

  • No test shows a frame-rate change. nicolasabosch's two runs sit inside main's six (8 GB laptop, standing). Our RT-off camera spin is the same. KruIN689's HW RT roaming pairs lean towards the PR on slow frames, but one "without" run met a heavier stretch, so that's neutral to slightly positive at most, with per-refresh cost unchanged.
  • davemathews12's check is the point of this PR. With nothing written and every page taken, the early return gives exactly the walk's result. MEMO_SAVED stays exact, and the slice adds no new panic. So it restores what the rewrite lost, at no cost, without promising speed.
  • The frame line doesn't count early exits, so how often it fires is still unknown. If that's wanted, a counter on the 5 s line is a small follow-up.
  • Overlap with #4341: its new head (72b3a244) notes its coverage record only where a page is taken again, so this PR's early return no longer needs to touch it. My earlier overlap note there no longer applies. Only the textual conflict near let last remains, for whichever lands second.

AI use: Claude Code (Claude Opus 5.5) read the reports and wrote this.

**@⁠Lyrnc** on GitHub · 2026-12-01 04:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294#issuecomment-7300477793) Thanks @⁠nicolasabosch and @⁠davemathews12, and @⁠KruIN689 for the HW RT case. - **No test shows a frame-rate change.** nicolasabosch's two runs sit inside main's six (8 GB laptop, standing). Our RT-off camera spin is the same. KruIN689's HW RT roaming pairs lean towards the PR on slow frames, but one "without" run met a heavier stretch, so that's neutral to slightly positive at most, with per-refresh cost unchanged. - **davemathews12's check is the point of this PR.** With nothing written and every page taken, the early return gives exactly the walk's result. `MEMO_SAVED` stays exact, and the slice adds no new panic. So it restores what the rewrite lost, at no cost, without promising speed. - The frame line doesn't count early exits, so how often it fires is still unknown. If that's wanted, a counter on the 5 s line is a small follow-up. - **Overlap with #4341:** its new head (72b3a244) notes its coverage record only where a page is taken again, so this PR's early return no longer needs to touch it. My earlier overlap note there no longer applies. Only the textual conflict near `let last` remains, for whichever lands second. AI use: Claude Code (Claude Opus 5.5) read the reports and wrote this.
github-bot force-pushed github-bot/gh-4294 from e03424b3d1 to 653b5b2de8 2026-12-01 05:23:14 +00:00 Compare
Author
Owner

@⁠albertik322-sudo on GitHub · 2026-12-01 17:00 UTC · original

Positive on a laptop, in the batch with #4341, #4494, #4877, #4207. PC: RTX 3070 Laptop 8 GB, i7-11800H, 32 GB RAM, Windows 11. Series S, 1080p output, DLSS Performance, FG x4.

Can't isolate cleanly, but the batch's fixed-cost drop (47 to 25.5 ms a frame) is consistent with the empty-journal skip doing real work: before the batch, refresh checks dominated the frame; after it, the per-frame copy refresh count is ~18,500 but the empty ones cost much less. No correctness issues observed — no stale geometry, no missing updates in hours of play.

**@⁠albertik322-sudo** on GitHub · 2026-12-01 17:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294#issuecomment-7318594794) Positive on a laptop, in the batch with #4341, #4494, #4877, #4207. PC: RTX 3070 Laptop 8 GB, i7-11800H, 32 GB RAM, Windows 11. Series S, 1080p output, DLSS Performance, FG x4. Can't isolate cleanly, but the batch's fixed-cost drop (47 to 25.5 ms a frame) is consistent with the empty-journal skip doing real work: before the batch, refresh checks dominated the frame; after it, the per-frame copy refresh count is ~18,500 but the empty ones cost much less. No correctness issues observed — no stale geometry, no missing updates in hours of play.
github-bot closed this pull request 2026-12-01 18:50:13 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:44 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4294#issuecomment-7321454278) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!4295
No description provided.