GPU: warn once when title descriptor slots exceed host heap (port of upstream VIctory #2634) #1054
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1054
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1054"
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?
@Moon0755 on GitHub · 2026-11-25 17:36 UTC · original
Moon0755:fix/host-heap-warn-once→main· +9 −6 · 1 files · 1 commits · openPort of upstream
Marvisak/VIctory#2634(originally authored by@pes7).Summary
In
HostHeap::mirror, when a title descriptor index exceeds the host descriptor heap count (e.g., NVIDIA's capped heap),HIGHEST.fetch_max(index) < indexpreviously emitted atracing::warn!("title slot past the host heap")line for every new high-water mark as the title walked slots in increasing order — up to ~250,000 log lines (~8,000/s) on the frame-recording thread, stalling the first world frame (reported upstream as 21 s -> 33 ms).Switching to
std::sync::Oncelogs the overflow diagnostic once instead of once per slot.Changes
crates/victory-gpu/src/descriptor/host.rs: replaced the per-high-water-markAtomicU32warning inHostHeap::mirrorwithstd::sync::Once::call_once.Verification
Verified on
windows-latestvia GitHub Actions (run 45665589388):cargo clippy -p xtask --all-targets --locked -- -D warnings— passedcargo check -p victory-gpu --all-targets --lockedand--all-features— passedcargo test -p victory-gpu descriptor --locked -- --test-threads=1 --nocapture—28 passed; 0 failedcargo test -p xtask --locked—4 passed; 0 failed(repository_passes_policypassed)— Neon
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.