fix(gpu): raise default dynamic slots to 458,752 and honor VICTORY_DYNAMIC_SLOTS on 1M-capped heaps #1007
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by whoalin1 on 2026-11-28T10:59:15Z.
Summary
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 ignoredImported from trustno1-coder/VIctory-NVIDIA. Originally posted by Vaporisateur on 2026-11-28T14:06:33Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Vaporisateur on 2026-11-28T14:39:18Z.
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
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.