fix(gpu): raise default dynamic slots to 458,752 and honor VICTORY_DYNAMIC_SLOTS on 1M-capped heaps #1007
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1007
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1007"
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?
@whoalin1 on GitHub · 2026-11-28 10:59 UTC · original
whoalin1:pr/dynamic-slots-458k→main· +37 −7 · 1 files · 1 commits · openSummary
Raises the default dynamic descriptor slot budget on
PORTABLE_VIEWS-capped heaps (1,000,000 descriptors, typical on NVIDIA) fromDYNAMIC(262,144) toDYNAMIC_CAPPED = 7 << 16(458,752), and makesVICTORY_DYNAMIC_SLOTSrespected on those heaps (clamped to[DYNAMIC, null / 2]).(Unlike #48, which leaves the default at
262,144and bundles unrelatedambient.rs/indirect.rschanges, this isolatesdynamic_slotsindescriptor/host.rsand raises the out-of-the-box default so 1M-capped heaps stop dropping draws.)Why
On 1M-capped heaps (
null < PORTABLE_VIEWS),dynamic_slotspreviously early-returnedDYNAMIC(262,144) and ignoredVICTORY_DYNAMIC_SLOTS. In draw-heavy scenes (such as GTA VI outdoor openings),262,144dynamic slots ran short and refused13–22%of dynamic descriptor tables, dropping draws. Raising the capped default to458,752keeps541,2471:1 title slots while eliminating those refusals.Change (
crates/victory-gpu/src/descriptor/host.rs)parse_dynamic_slots(count, null, asked)for testability.null < PORTABLE_VIEWStoDYNAMIC_CAPPED(458,752) whenVICTORY_DYNAMIC_SLOTSis unset, or clamp the override to[DYNAMIC, (null / 2).max(DYNAMIC)].dynamic_slots_tests::dynamic_slots_on_capped_1m_heap.Verification
Verified on Windows (
x86_64-pc-windows-msvc, RTX 4070 SUPER):git diff --check origin/main..HEAD— cleancargo run --locked -p xtask -- policy—asset policy: 294 files okcargo clippy --workspace --all-targets --locked&--all-features— 0 warnings incrates/victory-gpu/src/descriptor/host.rscargo test --release -p victory-gpu --locked --lib descriptor:: -- --test-threads=1— 63 passed, 0 failed, 0 ignored@Vaporisateur on GitHub · 2026-11-28 14:06 UTC · original
A data point for this, from an RTX 3080 10 GB (Windows 11, 32 GB RAM, Series X profile, DLSS Quality), diagnostics builds of v2026.11.27.10 and v2026.11.28.01 with
VICTORY_POOL_STATS=1, seven sessions of 5 to 9 minutes each, mostly the residential streets of the first chapter.Refusals are now rare but come in bursts, and each burst is visible flicker. Since the slot leak fix (
1d3b414) the refusals are far below the 13-22% described above: most 5-second windows refuse 0 of about 20,000 tables per frame. But they come back in short bursts while driving, for example:The player reported flicker at exactly those times, without knowing the log. Earlier sessions had bursts of 155 to 242 refused per frame for up to three minutes. So with 262,144 dynamic slots the reserve still runs dry at peaks, and raising it should remove the remaining flicker on 1M-capped heaps.
The title does not need the 1:1 slots this takes away. In an earlier measurement on the same setup and scene (one 15-minute session), the highest view slot the title wrote was 341,782. With 458,752 dynamic slots there are still 541,247 slots left for the title, about 200,000 more than it used.
We can run this PR in the same scene and report the refusal counts before and after, if that helps.
@Vaporisateur on GitHub · 2026-11-28 14:39 UTC · original
Follow-up with this PR applied, same RTX 3080 10 GB, same streets of the first chapter, diagnostics build of v2026.11.28.01 plus this PR (and #1041), one 8.5-minute session driving and walking:
The player still reports less flicker than before. Some flicker remains in the session, but it does not line up with any refusal, so it has another cause.
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.