GPU: log the host's video-memory use and its budget #952
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!952
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-952"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@EgoraWyn on GitHub · 2026-11-24 14:26 UTC · original
EgoraWyn:feat/video-memory-log→main· +83 −0 · 1 files · 1 commits · openThe runtime never asks the host how much video memory it may use or does use, so on a small card nothing in the log shows that the world is over the card. This PR (one file, 83 added lines, no behaviour change) adds three log lines; below is what they show on a 6 GB card.
Machine: NVIDIA RTX 3060 Laptop 6 GB (Ampere), driver 596.21 (32.0.15.9621), Windows 11 build 26300, 32 GB RAM, title 1.0.2.1 (own copy), diag build.
What it logs
host adapter name=NVIDIA GeForce RTX 3060 Laptop GPU dedicated_mb=5994video memory: 4518 MB of a 5226 MB budget on the adapter, 639 MB in system memory(DXGI's local use and budget of the process, and its non-local use)What it shows here (times are seconds after the process starts; the scripted first-run setup ends at 64 s, then loading)
mainffe310e+ patch, first promptSet A =
8e79c80+ #493 (c48b240) + #206 (05981dd) + #189 (d0fd9bf) + #454 (d2c93fa) + #211 (24a387d) + #492 (b57e10d) +MIN_DYNAMIC = 1 << 18(#747). Set B = the same PRs onmainffe310e, with #189 atb472733. Both withVICTORY_NO_WATCHDOG=1 VICTORY_SHADER_LOOP_LIMIT=32 VICTORY_D3D12_DRED=1, 420 s, no device removal.Notes
host D3D12 device readyline is not changed (other open PRs edit it).cargo clippy -p victory-gpu --all-targets --locked -- -D warningswith and without--all-features; the new unit test (video_memory_units_and_budget);cargo fmt --checkreports nothing inhost.rs; run onmainffe310eand on both sets above.The change is my own work under the repository's licence and contains nothing from the title.
AI use: Claude Code (Claude Fable 5.2 as orchestrator, a Claude Sonnet sub-agent for the first version of the patch) wrote the patch and this report and ran the builds and runs; a second tool (Codex) checked the numbers against the logs. The hardware, the title copy and the runs are the user's.
@MichaelSmithAI on GitHub · 2026-11-24 14:38 UTC · original
An independent renderer-device check passed on an RTX 4090 under Wine/vkd3d-proton 3.2. The DXGI adapter used by the logger had the same LUID as the live D3D12 device. Both node-0 segment queries succeeded. In the test process, DXGI reported local and non-local budgets of 20,825 MiB and 24,004 MiB respectively (whole MiB). The fixture also called the production logger.
Both focused tests passed. This checks adapter selection and query availability on this backend. These budgets were sampled without the title running, so they provide no measurement of world-frame memory pressure or resource residency.
@Zipettte on GitHub · 2026-11-24 15:40 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
faccc4e:cargo test -p victory-gpupasses, 51 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 00:29 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/host.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.