GPU: skip heap pages whose bytes did not change #783

Closed
github-bot wants to merge 3 commits from github-bot/gh-783 into main AGit
Owner

@⁠naixue2233 on GitHub · 2026-11-25 07:34 UTC · original
naixue2233:perf/heap-sync-copy-back → main · +105 −1 · 2 files · 3 commits · closed without merging

Rebased onto 9376fd6: the fingerprint change from this PR is gone (9376fd6 took it, record_print), and so is the one-write copy-back (the review on this PR: it filled the gaps between the runs with the title's bytes as read and wrote them after the loop, over anything the title wrote in between — the case upstream #2009 fixed; and it did not move the copying-back figure on its own). What is left is the first of the two costs. Nothing here changes what is computed; the picture is the same.

sync_heaps walked every record of every page the kernel called written. 300,000 to 485,000 records a frame, of which 12,000 to 20,000 were new. The kernel marks a page written even when the title put back the bytes it already held, so most of that walk found nothing. The page's bytes are now compared with the ones last read (64 KiB, a few microseconds) and the page's records are skipped when they are the same.

The bytes are kept by page address, so a heap's pages go with it when the heap is released: a heap placed where a released one was, holding the same bytes, would otherwise skip the sync its own host heap (new, and empty) needs.

Measured (with the copy-back still in), same scene band (2400 to 3200 draws/frame), medians of the frame lines, before and after:

before after
frame 815 ms 364 ms
preparing, copies 123 ms / 191 MB 71 ms / 194 MB
GPU 114 ms 133 ms
copying back 216 ms / 64 MB 210 ms / 62 MB

The first change is what moved the frame; the copies fell with it (fewer slots left stale, so less to refresh).

Honest limits: the run drifts through the prologue, so the bands are medians of 2 to 4 frame lines at matching draw counts rather than a fixed camera, and the later runs had a warm shader cache.

Two things this fork needs on Windows 10 to run at all, not part of this PR: the app-local Agility SDK runtime (without it the title dies at +0xb5a5f8 on the in-box runtime), and the keyboard stand-in pad fix from upstream #729 (with an XInput keyboard such as a Wooting the title otherwise gets no input).

from deepseek(v4.1 flash)

**@⁠naixue2233** on GitHub · 2026-11-25 07:34 UTC · [original](https://github.com/fxceless/victory-fork/pull/783) `naixue2233:perf/heap-sync-copy-back` → `main` · +105 −1 · 2 files · 3 commits · closed without merging Rebased onto 9376fd6: the fingerprint change from this PR is gone (9376fd6 took it, `record_print`), and so is the one-write copy-back (the review on this PR: it filled the gaps between the runs with the title's bytes as read and wrote them after the loop, over anything the title wrote in between — the case upstream #2009 fixed; and it did not move the copying-back figure on its own). What is left is the first of the two costs. Nothing here changes what is computed; the picture is the same. **`sync_heaps` walked every record of every page the kernel called written.** 300,000 to 485,000 records a frame, of which 12,000 to 20,000 were new. The kernel marks a page written even when the title put back the bytes it already held, so most of that walk found nothing. The page's bytes are now compared with the ones last read (64 KiB, a few microseconds) and the page's records are skipped when they are the same. The bytes are kept by page address, so a heap's pages go with it when the heap is released: a heap placed where a released one was, holding the same bytes, would otherwise skip the sync its own host heap (new, and empty) needs. Measured (with the copy-back still in), same scene band (2400 to 3200 draws/frame), medians of the frame lines, before and after: | | before | after | | --- | --- | --- | | frame | 815 ms | 364 ms | | preparing, copies | 123 ms / 191 MB | 71 ms / 194 MB | | GPU | 114 ms | 133 ms | | copying back | 216 ms / 64 MB | 210 ms / 62 MB | The first change is what moved the frame; the copies fell with it (fewer slots left stale, so less to refresh). Honest limits: the run drifts through the prologue, so the bands are medians of 2 to 4 frame lines at matching draw counts rather than a fixed camera, and the later runs had a warm shader cache. Two things this fork needs on Windows 10 to run at all, not part of this PR: the app-local Agility SDK runtime (without it the title dies at `+0xb5a5f8` on the in-box runtime), and the keyboard stand-in pad fix from upstream #729 (with an XInput keyboard such as a Wooting the title otherwise gets no input). from deepseek(v4.1 flash)
Two costs of the paths a26859f added, on a 3840x2160 window with a 2522 to
4394 draw world frame (RTX 3080, Windows 10, release build). 9376fd6 already
took the third (the fingerprint), so that is not here.

1. sync_heaps walked the 1,024 to 2,048 records of every page the kernel
   called written: 300,000 to 485,000 records a frame, of which 12,000 to
   20,000 were new. The kernel marks a page written even when the title put
   back the bytes it already held, so most of that walk found nothing. The
   page's bytes are now compared with the ones last read (64 KiB, a few
   microseconds) and the page's records are skipped when they are the same.

2. copy_back_with wrote every run of changed bytes through the kernel on its
   own: 53 to 75 MB a frame in runs a handful of bytes long, at 3 to 4
   ms/MB. The runs of one copy are contiguous, so they and the gaps between
   them (the title's bytes as read, so putting them back writes what is
   already there) now go back in one write per copy.

Measured, same scene band (2400 to 3200 draws/frame), medians of the frame
lines, before and after:

| | before | after |
| --- | --- | --- |
| frame | 815 ms | 364 ms |
| preparing, copies | 123 ms / 191 MB | 71 ms / 194 MB |
| copying back | 216 ms / 64 MB | 210 ms / 62 MB |

The first change is what moved the frame; the copies fell with it (fewer
slots left stale, so less to refresh). The second did not move the copying
back figure on its own — the one-write form lands in the same 210 to 256 ms
band, so the time there is not the write call itself. It is here because it
is fewer syscalls over the same bytes, not because I can show a win from it,
and it can be dropped without touching the first.

Honest limits: the run drifts through the prologue, so the bands are medians
of 2 to 4 frame lines at matching draw counts rather than a fixed camera, and
the later runs had a warm shader cache.

Two things the fork needs on Windows 10 to run at all, not part of this PR:
the app-local Agility SDK runtime (without it the title dies at +0xb5a5f8 on
the in-box runtime) and the keyboard stand-in pad fix from upstream #729
(with an XInput keyboard such as a Wooting the title otherwise gets no input).
`sync_heaps` walked the 1,024 to 2,048 records of every page the kernel
called written: 300,000 to 485,000 records a frame, of which 12,000 to
20,000 were new. The kernel marks a page written even when the title put
back the bytes it already held, so most of that walk found nothing. The
page's bytes are now compared with the ones last read (64 KiB, a few
microseconds) and the page's records are skipped when they are the same.

The bytes are kept by page address, so a heap's pages go with it when it
is released: a heap placed where a released one was, holding the same
bytes, would otherwise skip the sync its own host heap (new, and empty)
needs.

The one-write copy-back that came with this is dropped (the review on this
PR): it filled the gaps between the runs with the title's bytes as read
and wrote the whole stretch once, after the loop, over whatever the title
wrote there in between (the case upstream #2009 fixed). It did not move
the copying-back figure on its own either, and the runs go back as they
did before.

Measured with it still in, same scene band (2400 to 3200 draws/frame),
medians of the frame lines: frame 815 ms before, 364 ms after. The copies
fell with it (fewer slots left stale, so less to refresh).

Honest limits: the run drifts through the prologue, so the bands are
medians of 2 to 4 frame lines at matching draw counts rather than a fixed
camera, and the later runs had a warm shader cache.
`sync_heaps` read the 1,024 to 2,048 records of every page the kernel called
written, and hashed each one to tell whether it was new: 300,000 to 485,000
records a frame over some 250 pages, of which 12,000 to 20,000 turned out to
be new. Skipping the pages the title rewrote with the bytes it already held
(the commit before this one) took the pass from 35-42 ms to about 19 ms a
frame; what is left is the walk of the pages that did change.

The kernel marks a page, not a record, so a page whose ring of records moved
by two slots still walked all 2,048 of them. The page last read is kept for
the whole-page compare anyway, so this takes from it the first and last bytes
that differ and walks only the records those bytes touch: a page that moved a
handful of records walks a handful.

Records outside that span are the ones last mirrored here, with one exception
that the walk keeps: a slot whose fingerprint is still 0 has no mirror yet (it
was never made, or what was there was dropped), and it is walked whatever the
bytes say - `HostHeap::needs_mirror`. Skipping those, by comparing every
record's bytes against the page as last read, is what an earlier form of this
change did, and it left stale descriptors in the heap: the rendering went
wrong, so that form was dropped.

Measured on the 16-PR integration stack (RTX 3080, 1920x1080 screen, the title
presenting 3840x2160): `descriptor sync` went from 18.9 ms a frame (median of
1,801 frame lines) to 10.5-10.8 ms, with 85-94% of the records in changed
pages no longer hashed. Same picture over the runs measured.

`cargo test -p victory-gpu` on Windows: 142 passed, 2 failed - both fail
without this change too on this machine (`watch::tests::
kernel_reads_into_guarded_blocks_after_opening`, a sandbox denial, and
`pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws`, which
cannot make its pipeline here: 0x80070057).

Co-authored-by: Claude (claude-opus-5-5) <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:51:03 +00:00
Author
Owner

@⁠not-rex on GitHub · 2026-11-25 07:57 UTC · original

Read through at b5dee8dc (not run). The page skip in sync_heaps looks like the right idea, but the one-write copy-back in copy_back_with looks like it brings back the bug upstream #2009 fixed:

  • Stale bytes over the title's writes (shadow.rs 2499-2523, 2541-2547). The gaps between runs are read into written_span while the loop goes on, then the whole stretch goes back in one write_mapped after the loop. There is no GAP limit in the code (the comments at 2479 and 2530 name one), so a stretch can run across most of the range. Anything the title, DirectStorage or another copy writes in a gap between that read and the final write is overwritten with the older bytes. That is the case the comments at 1700-1710 and 1813 describe (a record the title had replaced, then an access violation through 0xffffffff00000000, PalmVIDev e0b70476 / VIctory f39c6c2). The comment at 2526 still says "a title write landing there since stays", which no longer holds.
  • Writing the gaps back also marks those pages as title-written, so the next refresh copies them again.
  • Since the body says this half did not move the copy-back time, dropping it (keeping the per-run writes) would leave only the page skip, the part that measured 815 -> 364 ms.

On the page skip (descriptor.rs 223-231): seen_pages is keyed by address only and is cleared only at 4096 entries, so a heap released and a new one placed at the same address with the same bytes would skip its first sync. Unlikely, but clearing the entries for a heap's range when the heap goes would rule it out.

**@⁠not-rex** on GitHub · 2026-11-25 07:57 UTC · [original](https://github.com/fxceless/victory-fork/pull/783#issuecomment-7156442426) Read through at `b5dee8dc` (not run). The page skip in `sync_heaps` looks like the right idea, but the one-write copy-back in `copy_back_with` looks like it brings back the bug upstream #2009 fixed: - **Stale bytes over the title's writes** (`shadow.rs` 2499-2523, 2541-2547). The gaps between runs are read into `written_span` while the loop goes on, then the whole stretch goes back in one `write_mapped` after the loop. There is no `GAP` limit in the code (the comments at 2479 and 2530 name one), so a stretch can run across most of the range. Anything the title, DirectStorage or another copy writes in a gap between that read and the final write is overwritten with the older bytes. That is the case the comments at 1700-1710 and 1813 describe (a record the title had replaced, then an access violation through `0xffffffff00000000`, PalmVIDev e0b70476 / VIctory f39c6c2). The comment at 2526 still says "a title write landing there since stays", which no longer holds. - Writing the gaps back also marks those pages as title-written, so the next refresh copies them again. - Since the body says this half did not move the copy-back time, dropping it (keeping the per-run writes) would leave only the page skip, the part that measured 815 -> 364 ms. On the page skip (`descriptor.rs` 223-231): `seen_pages` is keyed by address only and is cleared only at 4096 entries, so a heap released and a new one placed at the same address with the same bytes would skip its first sync. Unlikely, but clearing the entries for a heap's range when the heap goes would rule it out.
Author
Owner

@⁠naixue2233 on GitHub · 2026-11-25 08:53 UTC · original

Both points taken, at d695015:

  • The one-write copy-back is dropped. The runs go back per run as before, so a stretch's title bytes are never put back over a write that landed since (upstream #2009), and watch::writing covers exactly the bytes written. The page skip is the part that measured 815 to 364 ms, and it stays.
  • seen_pages loses a heap's pages when the heap goes (Heap's Drop), so a heap placed where a released one was, holding the same bytes, syncs its first page as its own host heap needs. The 4,096-page bound (256 MB) is in its comment, with what a world frame actually spans: 150 to 475 pages.

— deepseek v4.1flash

**@⁠naixue2233** on GitHub · 2026-11-25 08:53 UTC · [original](https://github.com/fxceless/victory-fork/pull/783#issuecomment-7157604744) Both points taken, at `d695015`: - The one-write copy-back is dropped. The runs go back per run as before, so a stretch's title bytes are never put back over a write that landed since (upstream #2009), and `watch::writing` covers exactly the bytes written. The page skip is the part that measured 815 to 364 ms, and it stays. - `seen_pages` loses a heap's pages when the heap goes (`Heap`'s `Drop`), so a heap placed where a released one was, holding the same bytes, syncs its first page as its own host heap needs. The 4,096-page bound (256 MB) is in its comment, with what a world frame actually spans: 150 to 475 pages. — deepseek v4.1flash
Author
Owner

@⁠naixue2233 on GitHub · 2026-11-25 10:25 UTC · original

Updated: a second commit narrows the walk inside the pages that did change.

  • Whole pages (previous commit): the kernel marks a page written even when
    the title put back the bytes it held, so the page is compared against the
    copy last read (a few microseconds) and skipped when identical.
  • Records inside a changed page (this commit): the kernel marks a page, not
    a record, so a page whose ring of records moved two slots used to walk all
    1,024-2,048 of them. The page last read is kept for the compare anyway, so
    the walk now covers only the records the first-to-last differing bytes touch.
  • Exactness: records outside that span are the ones last mirrored here,
    except a slot whose fingerprint is still 0 (never mirrored, or dropped
    since) - those are walked whatever the bytes say (HostHeap::needs_mirror).
    An earlier form of this change compared every record's bytes against the page
    as last read and so skipped those slots too; it left stale descriptors in the
    heap and the rendering went wrong, so it was dropped.

Measured on the integration stack (RTX 3080, 1920x1080 screen, title presenting
3840x2160): descriptor sync 18.9 ms a frame -> 10.5-10.8 ms (medians of
1,801 / 289 frame lines), with 85-94% of the records in changed pages no longer
hashed. Same picture across the runs measured.

cargo test -p victory-gpu: 142 passed, 2 failed, and both fail without this
change on this machine (watch::tests::kernel_reads_into_guarded_blocks_after_opening

  • a sandbox denial; pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws
  • cannot make its pipeline here, 0x80070057).
**@⁠naixue2233** on GitHub · 2026-11-25 10:25 UTC · [original](https://github.com/fxceless/victory-fork/pull/783#issuecomment-7159684349) Updated: a second commit narrows the walk inside the pages that did change. - **Whole pages** (previous commit): the kernel marks a page written even when the title put back the bytes it held, so the page is compared against the copy last read (a few microseconds) and skipped when identical. - **Records inside a changed page** (this commit): the kernel marks a page, not a record, so a page whose ring of records moved two slots used to walk all 1,024-2,048 of them. The page last read is kept for the compare anyway, so the walk now covers only the records the first-to-last differing bytes touch. - **Exactness**: records outside that span are the ones last mirrored here, except a slot whose fingerprint is still 0 (never mirrored, or dropped since) - those are walked whatever the bytes say (`HostHeap::needs_mirror`). An earlier form of this change compared every record's bytes against the page as last read and so skipped those slots too; it left stale descriptors in the heap and the rendering went wrong, so it was dropped. Measured on the integration stack (RTX 3080, 1920x1080 screen, title presenting 3840x2160): `descriptor sync` 18.9 ms a frame -> **10.5-10.8 ms** (medians of 1,801 / 289 frame lines), with 85-94% of the records in changed pages no longer hashed. Same picture across the runs measured. `cargo test -p victory-gpu`: 142 passed, 2 failed, and both fail without this change on this machine (`watch::tests::kernel_reads_into_guarded_blocks_after_opening` - a sandbox denial; `pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws` - cannot make its pipeline here, 0x80070057).
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-25 10:29 UTC · original

I tested the unchanged-page comparison on an RTX 5070 Ti under Windows 11. Both runs used the same diagnostics executable on 9376fd6, with an opt-in switch around the PR’s page comparison, the Series X profile, the same shader cache seed, and the same 1080p camera view. Each sample has 149 presents.

Metric Off On
FPS 4.56 4.51
Median frame time 219.33 ms 220.79 ms
p95 frame time 233.81 ms 239.54 ms
Median descriptor records scanned per frame 202,342 195,200
Median descriptor sync time per frame 8.71 ms 10.16 ms

The scene rendered comparably in both captures. This is one run per setting. In this window the pass still scanned most of the records, and the smaller scan did not produce a measurable throughput gain.

AI-assisted verification.

**@⁠SkillIssueXO** on GitHub · 2026-11-25 10:29 UTC · [original](https://github.com/fxceless/victory-fork/pull/783#issuecomment-7159764875) I tested the unchanged-page comparison on an RTX 5070 Ti under Windows 11. Both runs used the same diagnostics executable on 9376fd6, with an opt-in switch around the PR’s page comparison, the Series X profile, the same shader cache seed, and the same 1080p camera view. Each sample has 149 presents. | Metric | Off | On | | --- | ---: | ---: | | FPS | 4.56 | 4.51 | | Median frame time | 219.33 ms | 220.79 ms | | p95 frame time | 233.81 ms | 239.54 ms | | Median descriptor records scanned per frame | 202,342 | 195,200 | | Median descriptor sync time per frame | 8.71 ms | 10.16 ms | The scene rendered comparably in both captures. This is one run per setting. In this window the pass still scanned most of the records, and the smaller scan did not produce a measurable throughput gain. AI-assisted verification.
Author
Owner

@⁠naixue2233 on GitHub · 2026-11-25 10:35 UTC · original

@⁠SkillIssueXO — thank you, and the numbers are the answer I needed: on your window the page compare costs 1.45 ms more (8.71 → 10.16 ms) and skips 3.5% of the walk (202,342 → 195,200). That is a loss, not a wash, and it points at the right thing.

Two costs sat in that pass, and only one of them was the point:

  1. Every changed page was cloned. seen.insert(from, page_bytes.clone()) allocated and copied 64 KiB per page per frame — around 250 pages is 16 MB of memcpy and 250 allocations a frame, whether or not any record in the page was new. That alone can be your 1.45 ms.
  2. The pages that did change were still walked in full. The kernel marks a page, not a record, so a page whose ring of records moved by two slots walked all 2,048 of them. In your window most pages really did change, which is why the skip barely moved the record count — the pass had nothing to skip and paid for the compare.

The commit pushed now (5e3e18e, rebased on top of the page compare) addresses both, inside the pages that change:

  • The page kept for the compare is now filled into the memory the last copy held, not cloned. No allocation, no second copy.
  • From that kept page it takes the first and last bytes that differ and walks only the records those bytes touch. A page that moved two records walks the two records' span instead of 2,048.
  • Records outside that span are the ones last mirrored here, with one exception the walk keeps: a slot whose fingerprint is still 0 has no mirror yet, and it is walked whatever the bytes say (HostHeap::needs_mirror). An earlier form of this change compared every record's bytes against the page and skipped the zeros too — it left stale descriptors in the heap and the rendering went wrong, so that form was dropped. That is the correct behaviour, not an optimisation I could trade away.

On my machine (RTX 3080, Windows 10, the title presenting 3840×2160) the pair takes descriptor sync from 18.9 ms to 10.5–10.8 ms a frame with 85–94% of the records in changed pages no longer hashed, and the picture is identical across repeated runs.

If your scene is the better test — it clearly is, 4.5 fps with 8.71 ms already spent there — then please do one more A/B on 5e3e18e: same binary, same cache seed, the page compare off against on. If it still loses on your box, say so and I will ask for this to be closed. It should not be merged as neutrally-rendering noise; the whole claim is that the walk inside changed pages is where the 1.4 ms goes.

Two smaller notes while you have it built:

  • The one-write copy-back half of this PR is already gone (dropped in the earlier force-push) — this PR is now descriptor sync only.
  • VICTORY_HEAP_SYNC=0 still turns the whole pass off, which is the cleanest way to prove the pass is where the difference is.

AI-assisted, as before.

**@⁠naixue2233** on GitHub · 2026-11-25 10:35 UTC · [original](https://github.com/fxceless/victory-fork/pull/783#issuecomment-7159894782) @⁠SkillIssueXO — thank you, and the numbers are the answer I needed: on your window the page compare costs **1.45 ms more** (8.71 → 10.16 ms) and skips **3.5%** of the walk (202,342 → 195,200). That is a loss, not a wash, and it points at the right thing. Two costs sat in that pass, and only one of them was the point: 1. **Every changed page was cloned.** `seen.insert(from, page_bytes.clone())` allocated and copied 64 KiB per page per frame — around 250 pages is 16 MB of memcpy and 250 allocations a frame, whether or not any record in the page was new. That alone can be your 1.45 ms. 2. **The pages that did change were still walked in full.** The kernel marks a page, not a record, so a page whose ring of records moved by two slots walked all 2,048 of them. In your window most pages really did change, which is why the skip barely moved the record count — the pass had nothing to skip and paid for the compare. The commit pushed now (`5e3e18e`, rebased on top of the page compare) addresses both, inside the pages that change: - The page kept for the compare is now **filled into the memory the last copy held**, not cloned. No allocation, no second copy. - From that kept page it takes the **first and last bytes that differ** and walks only the records those bytes touch. A page that moved two records walks the two records' span instead of 2,048. - Records outside that span are the ones last mirrored here, with one exception the walk keeps: a slot whose fingerprint is still `0` has no mirror yet, and it is walked whatever the bytes say (`HostHeap::needs_mirror`). An earlier form of this change compared every record's bytes against the page and skipped the zeros too — it left stale descriptors in the heap and the rendering went wrong, so that form was dropped. That is the correct behaviour, not an optimisation I could trade away. On my machine (RTX 3080, Windows 10, the title presenting 3840×2160) the pair takes `descriptor sync` from **18.9 ms to 10.5–10.8 ms** a frame with 85–94% of the records in changed pages no longer hashed, and the picture is identical across repeated runs. If your scene is the better test — it clearly is, 4.5 fps with 8.71 ms already spent there — then please do one more A/B on `5e3e18e`: same binary, same cache seed, the page compare off against on. **If it still loses on your box, say so and I will ask for this to be closed.** It should not be merged as neutrally-rendering noise; the whole claim is that the walk inside changed pages is where the 1.4 ms goes. Two smaller notes while you have it built: - The one-write copy-back half of this PR is already gone (dropped in the earlier force-push) — this PR is now descriptor sync only. - `VICTORY_HEAP_SYNC=0` still turns the whole pass off, which is the cleanest way to prove the pass is where the difference is. AI-assisted, as before.
Author
Owner

@⁠GraciousGazelles on GitHub · 2026-11-25 14:00 UTC · original

I’m reconciling the public speed evidence against FX head 0b0074e0 before any local trial. The corrected README fit reports 145→124 ms at 4,500 draws and 271→211 ms at 10,000 draws for render windows off vs windows on + VICTORY_COPY_PLAIN=1, while noting the earlier 6.0/8.9 FPS comparison used scenes with about 4,300 vs 1,550 draws. For PR #783, do you have a pinned same-runtime/head protocol that records exact launch/route or checkpoint, per-arm flags, cache warmup/seed, capture interval, foreground/observer state, sample window/count, and matched control? I’m specifically trying to avoid comparing the RTX3080/5070 Ti PR measurements to the RTX4070 corrected README fit as if they were one controlled pair.

**@⁠GraciousGazelles** on GitHub · 2026-11-25 14:00 UTC · [original](https://github.com/fxceless/victory-fork/pull/783#issuecomment-7164612901) I’m reconciling the public speed evidence against FX head 0b0074e0 before any local trial. The corrected README fit reports 145→124 ms at 4,500 draws and 271→211 ms at 10,000 draws for render windows off vs windows on + `VICTORY_COPY_PLAIN=1`, while noting the earlier 6.0/8.9 FPS comparison used scenes with about 4,300 vs 1,550 draws. For PR #783, do you have a pinned same-runtime/head protocol that records exact launch/route or checkpoint, per-arm flags, cache warmup/seed, capture interval, foreground/observer state, sample window/count, and matched control? I’m specifically trying to avoid comparing the RTX3080/5070 Ti PR measurements to the RTX4070 corrected README fit as if they were one controlled pair.
Author
Owner

@⁠naixue2233 on GitHub · 2026-11-25 14:24 UTC · original

@⁠GraciousGazelles — no, and that is the right question to ask before a fourth number gets added. There is no single pinned protocol behind those figures; they are three separate measurements on three different trees, and none of them was recorded with the field set you list. Here is what each actually is.

RTX 3080, Windows 10 — the PR body. Rebased onto 9376fd6; the title presenting 3840×2160 on a 1920×1080 screen. No route or checkpoint: the run drifts through the prologue, so frames are banded by draws a frame (2,400–3,200) and a band's figure is the median of 2–4 frame lines at a matching draw count. Before and after are two runs of that build, the page skip in and the copy-back still in for the table. Cache: the earlier runs cold, the later ones warm, which the body says rather than hides. Foreground and focused. Capture off for the timed frames; with VICTORY_CAPTURE_WORLD on, the read-back is 235 ms a saved frame, so a run that both saves and times uses EVERY=64.

RTX 5070 Ti, Windows 11 — @⁠SkillIssueXO's. The only one of the three with a matched control, and it is his: one diagnostics binary on 9376fd6, one opt-in switch around the page comparison, Series X profile, one shader-cache seed, one 1080p camera view, 149 presents a sample, one run an arm. If the question is "does the pass pay on this scene", that table is the one to quote.

The README fit on 0b0074e0. Draw windows off against on + VICTORY_COPY_PLAIN=1, frame time against draws per frame fitted per run: 145 → 124 ms at 4,500 draws, 271 → 211 ms at 10,000. The 6.0 / 8.9 FPS pair was withdrawn because the two runs stood in different scenes, about 4,300 and 1,550 draws a frame — the error you are guarding against, made and then caught.

So the answer to the protocol question is no, and the comparison you are worried about does not exist: the 3080 and 5070 Ti figures should not be read against the README fit at all. They share neither head nor scene. One is banded by draws inside a single scene, one is a switch on one head in another scene, and the fit is a line across draws on a third.

If a pinned protocol is worth having before more numbers, I would rather write it down than reconstruct it: named checkpoint or fixed camera, head and binary hash, one env switch an arm, cache seed, N presents alternating arms, foreground and observer state, capture off. Say so and I will put it in docs/ and point the next table at it.

— deepseek v4.1 flash

**@⁠naixue2233** on GitHub · 2026-11-25 14:24 UTC · [original](https://github.com/fxceless/victory-fork/pull/783#issuecomment-7165224055) @⁠GraciousGazelles — no, and that is the right question to ask before a fourth number gets added. There is no single pinned protocol behind those figures; they are three separate measurements on three different trees, and none of them was recorded with the field set you list. Here is what each actually is. **RTX 3080, Windows 10 — the PR body.** Rebased onto `9376fd6`; the title presenting 3840×2160 on a 1920×1080 screen. No route or checkpoint: the run drifts through the prologue, so frames are banded by draws a frame (2,400–3,200) and a band's figure is the median of 2–4 frame lines at a matching draw count. Before and after are two runs of that build, the page skip in and the copy-back still in for the table. Cache: the earlier runs cold, the later ones warm, which the body says rather than hides. Foreground and focused. Capture off for the timed frames; with `VICTORY_CAPTURE_WORLD` on, the read-back is 235 ms a saved frame, so a run that both saves and times uses `EVERY=64`. **RTX 5070 Ti, Windows 11 — @⁠SkillIssueXO's.** The only one of the three with a matched control, and it is his: one diagnostics binary on `9376fd6`, one opt-in switch around the page comparison, Series X profile, one shader-cache seed, one 1080p camera view, 149 presents a sample, one run an arm. If the question is "does the pass pay on this scene", that table is the one to quote. **The README fit on `0b0074e0`.** Draw windows off against on + `VICTORY_COPY_PLAIN=1`, frame time against draws per frame fitted per run: 145 → 124 ms at 4,500 draws, 271 → 211 ms at 10,000. The 6.0 / 8.9 FPS pair was withdrawn because the two runs stood in different scenes, about 4,300 and 1,550 draws a frame — the error you are guarding against, made and then caught. So the answer to the protocol question is no, and the comparison you are worried about does not exist: the 3080 and 5070 Ti figures should not be read against the README fit at all. They share neither head nor scene. One is banded by draws inside a single scene, one is a switch on one head in another scene, and the fit is a line across draws on a third. If a pinned protocol is worth having before more numbers, I would rather write it down than reconstruct it: named checkpoint or fixed camera, head and binary hash, one env switch an arm, cache seed, N presents alternating arms, foreground and observer state, capture off. Say so and I will put it in `docs/` and point the next table at it. — deepseek v4.1 flash
github-bot closed this pull request 2026-11-26 15:13:23 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.