Textures never uploaded are served before re-checks of ones already on the card (VICTORY_TEXTURE_FAST_QUEUE) #4757
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!4757
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4756"
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?
@henriazz10 on GitHub · 2026-12-01 05:25 UTC · original
henriazz10:perf/texture-fast-queue→main· +201 −12 · 5 files · 2 commits · closed without mergingWhat it changes
Textures picked by index that were never uploaded waited behind re-checks of textures that already had a copy on the card. While the queue is long, that is visible in play as surfaces that stay low-detail or late for many seconds.
VICTORY_TEXTURE_FAST_QUEUE=1(turned on inplay.rs, off elsewhere):Due::ordered_with_mode(descriptor/host.rs) now serves, in order: hot → retries that never uploaded → fresh never-uploaded → speculative re-checks only with the budget left.draw.rs: catch-up and the above-12 GiB texture-pass cap are blocked only by critical commit pressure (residency::critical_commit(): below 1.5 GiB of commit or a recentE_OUTOFMEMORY) instead of ordinarypressured().!room,admit_texture_pass()andprefetch_limit(pressured)are unchanged, so it does not ask for more VRAM or RAM.texture::unchanged()(texture.rs,resource.rs): above 48 KiB it first compares a 3×16 KiB fingerprint kept next to the digest inHolds. If that differs, the texture changed and the full digest is skipped. If it matches, the full digest still runs, so a texture is never kept by mistake.The submit thread does no extra work: the reordering happens where the queue is already sorted.
How it was tested
v2026.11.30.03with this change and the other changes of this set (fills and journal, refresh no-ops, sub-range copy-back; each in its own pull request) applied, read fromvictory.log; fps = 1000 / median frame time.ci.yml:cargo build --releasepasses.cargo clippy --workspace --all-targets --locked -- -D warningsgives no new finding (it already fails onmain, in the same 3 files).cargo test --workspace --locked: 2489 pass;modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_itfails on every branch of this set and on none of the files they touch in the full parallel run, and each passes when run alone (--exact);mainitself failshost::refresh_tests::chunked_nothing_new_with_matches_individualin the same run.cargo fmt --checkalready reports hundreds of hunks per file onmain; the new code follows the style of the code around it.Checked for overlap
AI-assisted. Neon (Gemini) wrote the change; Claude Code reviewed it, rebased it on
main, built it, ran the checks and measured it with the player.🤖 Generated with Claude Code
@stasadance on GitHub · 2026-12-01 07:43 UTC · original
Tested this on Linux: RTX 4090, 32 GB RAM, NVIDIA 620.73.04, Wine 11.23, vkd3d-proton GE cae8353ed, DLSS + FG 2X, driving through the city. This PR was ported onto a fork build with
VICTORY_TEXTURE_FAST_QUEUE=1.This isn't an isolated A/B. The same build also turned main's
VICTORY_CARD_CPU_FILE=1andVICTORY_TEXTURE_SOFT_MB=3000defaults back on, which our fork had left off. Compared with the earlier build (v11x → v12c):The queue-age drop is the part that's down to this PR. The memory numbers are mostly the two defaults.
@trustno1-coder on GitHub · 2026-12-01 18:33 UTC · original
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