Textures: prefetch is held back for low commit only, not for low free physical memory #4349
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!4349
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4348"
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?
@harrisotiropoulos-jpg on GitHub · 2026-11-30 19:12 UTC · original
harrisotiropoulos-jpg:fix/texture-prefetch-commit→main· +1016 −849 · 33 files · 14 commits · closed without mergingWhat it changes
Texture prefetch is held to 64 MB a frame under host memory pressure, which guards against commit running out. The limit was taken from the overall pressure flag (
residency::pressured), which also turns on at 3 GiB of free physical memory. On a 32 GB PC with a large page file that held textures back for whole sessions with commit plentiful.texture_pressured), with the same lines: on at 4 GiB, off at 6 GiB.VICTORY_PREFETCH_PRESSURE=physicalrestores the old rule. The warning's text says what it now limits, and a line says when the commit limit turns on or off.This changes the default: with little physical memory free, a frame may prefetch more than before and so use more RAM while uploading. Say so if you would rather have it opt-in.
How it was tested
cargo test --release -p victory-gpu --lib: no. 1,132 passed (one new: the rule and its hysteresis) and 2 failed:list::thin::tests::bindings_record_no_workandshader_cache::tests::every_switch_of_the_translator_is_in_the_key. Both fail on main (e1251c319) too. Clippy reports nothing in the lines changed; its CI step fails on main's own findings (#4297, #4166).Checked for overlap
next_pressurein the same file, so a conflict is possible), #3478 (the texture pass's time under RAM pressure, not its bytes)🤖 Generated with Claude Code
@trustno1-coder on GitHub · 2026-12-01 18:42 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