New textures hot within 16 MB a frame: the scene holds 29+ fps 3 s after the world's load, not 6 s #4509
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by paales on 2026-11-30T21:37:29Z.
Written 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, #4206, #4138, #720 and #4493 (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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:39:25Z.
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