Texture pass: a backlog gets three times the time also on a full card or with RAM pressure #3478
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!3478
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3478"
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?
@paales on GitHub · 2026-11-29 23:45 UTC · original
paales:texture-pass-time-on-full-card→main· +17 −17 · 1 files · 1 commits · openWritten by 🤖:
What it changes
After a scene cut, thousands of textures picked by index are due at once.
texspk_cap_msgives a frame's runs of the texture pass three timesVICTORY_TEXSPK_PASS_MSfor such a backlog, but only while the card has room and the PC's RAM is not under pressure. At a scene cut the two come together: the new scene fills the card, and the title's streaming takes the PC's free RAM under 3 GB. So the pass kept 8 ms a frame when the backlog was largest, and surfaces showed the neutral texture for 15 to 20 s. Leaf cards then show as flat white-gray quads (the neutral texture's alpha is 0.5).The cap is CPU time on the recording thread. What needs memory has its own limits, and this change keeps them: the byte budget per frame (
residency::prefetch_limit, 64 MB under pressure) and the room check before a new host copy. A backlog (1,024 or more slots due) now gets three times the cap in all cases. Calm frames keep the cap they had (twice the cap only on cards over 12 GiB with room and free RAM). The early check of what a frame spent compares with the most a frame can take (catchup).How it was tested
draw.rsis the same as onmain41adb551apart from this change) and #1727 (HDR10 output, off in these runs).host memory pressure: limiting texture prefetch). In each 5 s, 124 to 198 runs of the pass stopped at their time, none at their bytes.VICTORY_TEXSPK_PASS_MS=24(24 ms in every frame): 101k and 162k slot-seconds. So the result follows the time the pass gets. WithVICTORY_TEXSPK_PASS_MS=24andVICTORY_SAMPLED_EVICT=1: 66k.cargo testpassed for the crates it touches:cargo test -p victory-gpu --lib texspk, with new cases for a full card and for RAM pressure.cargo clippy -p victory-gpu --all-targets: nothing indraw.rs. With-D warnings,mainstops before that, invictory-shader(3 errors inemit/lower).Checked for overlap
VICTORY_DUE_INDEX), #3128 and #3454 (slot eviction, which makes room on the card).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.