Texture turns back off while they find nothing #83
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!83
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-83"
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?
@mgrein on GitHub · 2026-11-30 09:14 UTC · original
mgrein:texture-turn-backoff→main· +63 −4 · 1 files · 47 commits · closed without mergingA guarded texture is hashed whole on its turn (every eighth frame, staggered by address) to catch a write through another view of its pages that the write guard cannot see. Counting why texture refreshes read memory in the world of a new retail game showed that these turns are nearly all of it: about 32 textures and 30 MB hashed a frame, and not one change found in a whole run.
This makes each texture's turns back off while they find nothing:
VICTORY_TEXTURE_TURN_MAXframes (64 by default, a power of two from 8 to 1024).VICTORY_TEXTURE_TURN_MAX=8gives the old behaviour for all textures.Written, exact and hot textures are read exactly as before; only the "nothing seen, its turn" reads are spaced out.
Measured
RTX 4070, Ryzen 5 5600X, Series S profile, DLSS quality + frame generation, with
VICTORY_SUBMIT_SPLIT=1,VICTORY_ASK_FIRST=1andVICTORY_OFF_LINE=1. Two 7.5-minute idle runs in the world, compared at the same number of list calls a frame (the idle camera differs per run):Separate runs of one build differ by up to about 3 ms at the same load, so I'd call the frame gain 2-5 ms; the texture refresh time is a direct counter and is the clearer number.
Tests
turns_back_off_while_nothing_changes(intervals, the cap, staggering);cargo test -p victory-gpu --lib texturepasses.The risk is a texture written only through another view, which is now caught up to 64 frames late instead of 8 once it has been quiet for a while; the first change found takes it back to every eighth frame.
🤖 Generated with Claude Code
@readmet3xt-lab on GitHub · 2026-12-01 01:36 UTC · original
A note on why this shows as closed: GitHub closed every open pull request by itself when main's history was rewritten on 2026-12-01 (text-only changes; every commit hash changed), and they cannot be reopened. This is not a rejection.
Your change is in the batch being tested for the next release, carried over as one commit with you as its author. Nothing is needed from you now; the result will be posted here.
Pull request closed