New textures hot within 16 MB a frame: the scene holds 29+ fps 3 s after the world's load, not 6 s #4510
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!4510
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4509"
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-30 21:37 UTC · original
paales:texture-cold-start→main· +31 −2 · 1 files · 17 commits · closed without mergingWritten by 🤖:
What it changes
A new guarded texture is hot for its first 64 frames: hashed at every check, not only on its turn. After a world's load thousands of textures are new at once, and the texture pass hashed all of them every frame. This PR keeps the hot start and bounds the hashing of textures that are hot and nothing else to 16 MB a frame (
VICTORY_TEXTURE_HOT_MB; 0: no bound). A texture over the frame's bound waits for a later frame and stays hot.An earlier version of this PR removed the hot start. That made a story save's montage show an armchair black for 0.8 s: its textures were filled by the game's CPU after their first upload, where no guard saw the write, and only a later recheck found the change. With the hot start, bound or not, it stayed textured.
How it was tested
main84bd61e2with #3918, #1727, #3553, #3043, #4207, #4138, #720 and #4494 (the hash turn every 64th frame), andVICTORY_TEXSPK_PASS_MS=24. The frames a texture starts hot and the bound were switches in that build for the test.The first cutscene of a new game:
main)A story save that loads into a mission cutscene, then a montage of quick cuts:
Captures every 135 ms of the boot with the hot start off showed the six-star screen as it should be; with the bound it is hot as before.
cargo check -p victory-gpu: passed.cargo test: not run.Checked for overlap
hot_textures: the second to merge needs a rebase there, which I do.A new texture starts cold: the scene holds 29+ fps 1 s after the world's load, not 6 sto New textures hot within 16 MB a frame: the scene holds 29+ fps 3 s after the world's load, not 6 s@trustno1-coder on GitHub · 2026-12-01 18:39 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