Investigate texture residency and shader inputs in the prologue #463
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/fxceless--victory-fork!463
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-463"
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?
@dervoxx on GitHub · 2026-11-25 01:16 UTC · original
dervoxx:render/material-residency-investigation→main· +1281 −265 · 21 files · 18 commits · openTested on Windows 11 with an RTX 5080. The prologue reached interactive dialogue with Yolanda. Skin, hair, clothing and cell textures rendered together. Eyes and the cell door still showed visual issues.
In a targeted experiment, two material textures received host descriptors within four frames of observation. Both were still unbound after 78 frames in the control. The visual impact of those two bindings alone remains unverified.
Screenshots and build notes. Feedback on which changes would be most useful upstream is welcome.
@ryotdev on GitHub · 2026-11-25 02:44 UTC · original · edited 2026-11-25 03:44 UTC
Independent RTX 5070 result on Windows. I ran the same saved checkpoint twice on a local instrumented build. In both runs the two pedestrian material reads initially saw null host texture slots. I checked for both a matching descriptor and a retained host texture.
Both priority-arm slots remained valid in all 59 later observations through +254. The per-frame upload budget stayed the same. These are sampled frames, so the actual upload can precede its first observation. The source samples matched across runs and stayed constant with both the existing fingerprint and the wider mip sampling proposed in #559. An after-upload content recheck cannot make a never-uploaded texture available for its first draw.
At +150 the priority run showed lettering and seams on the back of the jacket while the control jacket appeared black. By +250 both showed the lettering. The scene advanced at slightly different times between launches and I could not independently establish which on-screen character used each sampled texture. I would treat earlier residency as reproduced; the specific visual effect still needs an isolated test.
The reusable part appears to be giving already-due, draw-referenced entries precedence within the existing budget. My probe got the two indices from one material layout. A general implementation would need a reliable way to identify the draw's actual descriptor indices across shaders.
Follow-up on
310c6eb, RTX 5070 12 GB. I traced the larger texture on the precedingc96b4f2. It had a matching host resource until a new read-only texture view overlapped 40 KiB of its allocation. The overlap check erased the pending recheck and cleared the live host binding. Forty-seven later observations of the same material still saw a null binding. A separate launch found six earlier streaming view declarations whose full allocation ranges overlapped but whose selected mip ranges were disjoint. That launch kept the final textures resident.I replayed those seven relative address/extent cases through the actual span tracker in
310c6eb. The legacy rule evicted the older slot in 7/7 cases and the new default kept it in 7/7. Four existing tests for packed neighbours, remaps and retirement passed too.I also ran the same
310c6ebexecutable and checkpoint twice using independent caches, with only the overlap policy changed. Both runs completed 250 world frames. The two tracked textures were already resident in all 116 legacy and 124 default observations, so this pair can't isolate the jacket's appearance. The default run showed the near fence and fewer bright character overlays, while the lettering on the jacket was clearer in the legacy run. From world +150 to +250, elapsed time was 22.59 s with the legacy rule versus 42.25 s with the default (4.43 vs 2.37 frames/s). Median reported draw counts were 5,019 and 5,012 per frame. Dedicated memory during that interval was about 9.7 GiB in each run. This is one pair with independently streamed scenes and separate caches; the repeatable result is the seven-case retirement check.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.