docs: mention VICTORY_COPIES_IN_VIDEO_MEMORY in README Debugging table #2812

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/2814 into main
romeawayfromhome-rgb commented 2026-11-25 21:15:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by romeawayfromhome-rgb on 2026-11-25T21:15:37Z.


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://github.com/Marvisak/VIctory/issues/1633#issuecomment-7174581008

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).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6613906703 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2814). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-25T21:15:37Z. --- 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://github.com/Marvisak/VIctory/issues/1633#issuecomment-7174581008 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).
kotekompotek commented 2026-11-25 22:04:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T21:19:08Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:Marvisak/VIctory:review:6065127400 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2814#pullrequestreview-6065127400). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T21:19:08Z. **Review:** COMMENTED --- 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.
fuzeofficlal commented 2026-11-25 22:04:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T21:33:12Z.


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.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7175229866 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2814#issuecomment-7175229866). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-25T21:33:12Z. --- 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`.
Marvisak commented 2026-11-26 03:05:07 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T02:20:16Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7180705795 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2814#issuecomment-7180705795). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T02:20:16Z. --- <!-- 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)_
futurepro62 commented 2026-11-26 14:01:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-26T13:57:09Z.


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.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7194065883 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2814#issuecomment-7194065883). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-26T13:57:09Z. --- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2814:upstream-pr/2814'
git switch 'upstream-pr/2814'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2814'
git switch 'upstream-pr/2814'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2814'
git switch 'upstream-pr/2814'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2814'
git switch 'main'
git merge --squash 'upstream-pr/2814'
git switch 'main'
git merge --ff-only 'upstream-pr/2814'
git switch 'main'
git merge 'upstream-pr/2814'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!2812
No description provided.