docs: mention VICTORY_COPIES_IN_VIDEO_MEMORY in README Debugging table #2814

Open
github-bot wants to merge 1 commit from github-bot/gh-2814 into main AGit
Owner

@⁠romeawayfromhome-rgb on GitHub · 2026-11-25 21:15 UTC · original
romeawayfromhome-rgb:docs/copies-in-video-memory-readme → main · +1 −0 · 1 files · 1 commits · open

Documents VICTORY_COPIES_IN_VIDEO_MEMORY in the README Debugging table. The switch exists in crates/victory-gpu/src/host.rs (copies_in_video_memory, diagnostics build only): host copies of title memory go in video memory the CPU maps (a GPU upload heap, where the host has one) to measure how much of the GPU's time is shaders reading the copies over the bus; CPU reads of them become slow, for that measurement only. crates/victory-gpu/src/switch.rs confirms the on/off semantics the table preamble describes (on when set and not 0). The README had no mention of it.

Claim: #1633

Docs only (README.md, one table row). Not compiled locally — this environment has no Rust toolchain and the VIctory workspace does not build on Linux; relying on CI. Verified against current main (13f91ca): README search shows no existing mention, GitHub search for the variable name returns no issues/PRs, and CLAIMS.md has no claim for it. Open PR #2705 adds a different switch (VICTORY_CARD_COPIES) and does not touch the README.

Prepared with AI assistance (Muse Spark via Muse); conducted by Alexander Lerbakken (romeawayfromhome-rgb).

**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-25 21:15 UTC · [original](https://github.com/Marvisak/VIctory/pull/2814) `romeawayfromhome-rgb:docs/copies-in-video-memory-readme` → `main` · +1 −0 · 1 files · 1 commits · open Documents `VICTORY_COPIES_IN_VIDEO_MEMORY` in the README Debugging table. The switch exists in `crates/victory-gpu/src/host.rs` (`copies_in_video_memory`, diagnostics build only): host copies of title memory go in video memory the CPU maps (a GPU upload heap, where the host has one) to measure how much of the GPU's time is shaders reading the copies over the bus; CPU reads of them become slow, for that measurement only. `crates/victory-gpu/src/switch.rs` confirms the on/off semantics the table preamble describes (on when set and not `0`). The README had no mention of it. Claim: https://git.gtahub.st/github/Marvisak--VIctory/issues/1633 Docs only (README.md, one table row). Not compiled locally — this environment has no Rust toolchain and the VIctory workspace does not build on Linux; relying on CI. Verified against current main (13f91ca): README search shows no existing mention, GitHub search for the variable name returns no issues/PRs, and CLAIMS.md has no claim for it. Open PR #2705 adds a different switch (`VICTORY_CARD_COPIES`) and does not touch the README. Prepared with AI assistance (Muse Spark via Muse); conducted by Alexander Lerbakken (romeawayfromhome-rgb).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:14:54 +00:00
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-25 21:33 UTC · original

Checked 4dd1cb0b against crates/victory-gpu/src/host.rs:3151-3195 and README.md:172-208:

  • VICTORY_COPIES_IN_VIDEO_MEMORY is indeed gated on #[cfg(feature = "diagnostics")], parsed via crate::switch::on (off by default), probes GPUUploadHeapSupported, and places Host::shared_buffer in D3D12_HEAP_TYPE_GPU_UPLOAD (at the cost of slower CPU reads), matching the added table row.
  • cargo xtask policy: 184 files ok; clean git merge-tree against origin/main 13f91ca.
**@⁠fuzeofficlal** on GitHub · 2026-11-25 21:33 UTC · [original](https://github.com/Marvisak/VIctory/pull/2814#issuecomment-7175229866) Checked `4dd1cb0b` against `crates/victory-gpu/src/host.rs:3151-3195` and `README.md:172-208`: - `VICTORY_COPIES_IN_VIDEO_MEMORY` is indeed gated on `#[cfg(feature = "diagnostics")]`, parsed via `crate::switch::on` (off by default), probes `GPUUploadHeapSupported`, and places `Host::shared_buffer` in `D3D12_HEAP_TYPE_GPU_UPLOAD` (at the cost of slower CPU reads), matching the added table row. - `cargo xtask policy`: 184 files ok; clean `git merge-tree` against `origin/main` `13f91ca`.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-26 02:20 UTC · original

Automated triage for the maintainers.

This adds one row to the README's Debugging table for VICTORY_COPIES_IN_VIDEO_MEMORY. The switch exists on main (host.rs, diagnostics builds, read through switch::on), was undocumented, and the row describes what it does. It is docs only and kept short.

CI: not run (docs-only change).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 02:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/2814#issuecomment-7180705795) <!-- victory-triage v1 head=4dd1cb0bcd6ba1d3b2b504b4aa1026c75e28f386 verdict=merge-candidate at=2026-11-26T02:20:11Z --> Automated triage for the maintainers. This adds one row to the README's Debugging table for `VICTORY_COPIES_IN_VIDEO_MEMORY`. The switch exists on `main` (`host.rs`, diagnostics builds, read through `switch::on`), was undocumented, and the row describes what it does. It is docs only and kept short. CI: not run (docs-only change). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 21:19 UTC · original · reviewed

The switch exists (host.rs reads VICTORY_COPIES_IN_VIDEO_MEMORY for shared_buffer placement) and the description matches its behavior — GPU upload heap instead of system memory, trading slower CPU reads for measuring shader-side bus cost. LGTM.

**@⁠kotekompotek** on GitHub · 2026-11-25 21:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/2814#pullrequestreview-6065127400) · **reviewed** The switch exists (`host.rs` reads `VICTORY_COPIES_IN_VIDEO_MEMORY` for `shared_buffer` placement) and the description matches its behavior — GPU upload heap instead of system memory, trading slower CPU reads for measuring shader-side bus cost. LGTM.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-26 13:57 UTC · original

Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head 4dd1cb0 (on its base 13f91ca).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 773 passed, 0 failed, 9 ignored.
  • No new #[test] functions in the diff.
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-26 13:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/2814#issuecomment-7194065883) Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head `4dd1cb0` (on its base `13f91ca`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **773 passed, 0 failed, 9 ignored**. - No new `#[test]` functions in the diff. - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2814/head:github-bot/gh-2814'
git switch 'github-bot/gh-2814'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2814'
git switch 'github-bot/gh-2814'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2814'
git switch 'github-bot/gh-2814'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2814'
git switch 'main'
git merge --squash 'github-bot/gh-2814'
git switch 'main'
git merge --ff-only 'github-bot/gh-2814'
git switch 'main'
git merge 'github-bot/gh-2814'
git push origin 'main'
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/Marvisak--VIctory!2814
No description provided.