GPU: warn once when title descriptor slots exceed host heap (port of upstream VIctory #2634) #1052
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by Moon0755 on 2026-11-25T17:36:53Z.
Port 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.