Skip to content

docs: mention VICTORY_COPIES_IN_VIDEO_MEMORY in README Debugging table - #2814

Open
romeawayfromhome-rgb wants to merge 1 commit into
Marvisak:mainfrom
romeawayfromhome-rgb:docs/copies-in-video-memory-readme
Open

romeawayfromhome-rgb wants to merge 1 commit into
Marvisak:mainfrom
romeawayfromhome-rgb:docs/copies-in-video-memory-readme

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

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 (comment)

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 kotekompotek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Owner

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

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 26, 2026
@futurepro62

Copy link
Copy Markdown

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

Tested

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants