GPU allocation latency, memory queries and descriptor allocation optimizations #3561
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3561"
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 edge2labs on 2026-11-30T01:02:51Z.
Integrated performance contribution by Edge2Labs, containing seven commits rebased onto v2026.11.29.05 (
41adb551).Synthetic benchmark improvements:
Validation:
Release and Diagnostics builds passed. Targeted correctness tests passed. Existing upstream policy and Clippy failures remain, along with intermittent GPU test failures.
Experimental options:
Both options remain disabled by default.
Hardware: i9-14900K, RTX 4080 SUPER, 64 GB RAM.
All results are synthetic. No in-game FPS improvement is claimed. Based on the maintainer's feedback, these changes should primarily reduce hitches and improve frame-time stability.
The BC7 correction overlaps with PR #3263.
Looking forward to the in-game benchmark without frame generation.
Edge2Labs
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-11-30T05:26:37Z.
I read the staging refill and the BCPack change.
Staging refill (
67d9f4b): one race worth closing. The worker checksp.free_bytes < BLOCK / 2 && p.may_grow(now()), then drops the lock to allocate. Back under the lock it re-checksSTAGING_SPARESandfree_bytes, but notmay_grow. If a required allocation grows the pool to its cap in that window, the worker stilladds its block. The pool then goes one 64 MiB block over its growth limit, although the comment says it obeys the idle cap. Adding&& p.may_grow(now())to the condition beforep.add(...)closes it. The new block is already dropped outside the lock when it isn't kept. Since the feature is opt-in (VICTORY_STAGING_REFILL=1), the default path is unaffected.BC6H header plans (
c8bbcc2): equivalent to the old loop. The field indices (ep * 3 + ch, partition at 12) match the flat array. The only partition run isD = r(3, 0, 0, 5), so(part >> 0) & 31over 5 bits equals the oldput_unmasked(part, 5), becausepart = s[31] & 31. The const assertion also checks the 82/65 bit totals.One gap in the new
bc6_header_plan_matches_bit_writertest: its expected value usesput(fields[12] >> run.first, run.len)for the partition, the new interpretation. The old code wroteput_unmasked(part, 5). An assertion that everych == 3run isfirst 0, len 5would pin the two together.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:51:12Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed