GPU: sample deferred character material textures #49
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/DexNom--VIctory!49
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-49"
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?
@Artking175 on GitHub · 2026-11-25 21:07 UTC · original
Artking175:character-material-demand→main· +425 −35 · 4 files · 4 commits · draftExtend the existing opt-in material texture demand path to the two deferred character pixel shaders seen in the dark-prologue investigation.
Both shaders read texture indices from the material record in SRV table 0, dword 688. The record byte offset comes from user data word 14. The regular variant reads offsets 0–24 at four-byte intervals, and the packed variant also reads offsets 28 and 32. Those words feed the resource-heap descriptor loads after the guest's five-bit shift. The two shader hashes currently miss the sampler's allowlist.
The new test checks the index extraction and the readable byte ranges for both variants, including a record that is large enough for the regular variant and too short for the packed one. The feature still requires
VICTORY_MATERIAL_TEXTURE_DEMAND=1.Validation
The shader commands appeared in a capture from the affected scene. The specific material attached to the clothing, texture residency, and the in-game visual effect remain to be measured.
@Artking175 on GitHub · 2026-11-26 01:22 UTC · original
I repeated the two shader checks on RayTime main
64bd58fwith this change applied cleanly, a local material readback probe, and the same Agility loader on RTX 2060. With RT disabled, bothVICTORY_AMBIENT_FALLBACK=0and=1validated both G-buffer shaders and created both D3D12 PSOs. Comparing each shader's emitted DXIL by hash gave the same bytecode in both runs. The tiled lighting pass is separate from this check.The local probe's synthetic fixture read all nine packed fields from a GPU-written record whose CPU copy stayed zero. It distinguished a title texture with no retained native resource from a descriptor rewritten before observation. The fixture passed on RTX 2060 and WARP, and a variant that allowed tracing to reschedule uploads failed the queue assertion. The full GPU suite on the probe build reported 241 passed, 0 failed, 4 ignored. The next evidence needed is a matching game draw and its material record.
@Artking175 on GitHub · 2026-11-26 06:28 UTC · original
I followed up with a game run on the RTX 2060 (Windows 10, driver 531.41, Agility 1.614.1, Series X with RT off). RayTime
64bd58fplus #49 and the local GPU readback probe used one release binary for three runs, with separate copies of the same starting saves and cache. The normal split with demand off/on returned 12 and 9 material records froma402e650d0acbc92, respectively. A third, wider-heap run returned 5 more. There were no records fromb15ba4896d650511in these captures.With demand on, the GPU read slots 37484 and 37485 from byte offsets 8 and 16. Both were re-enqueued at frame 2099 and still had no retained native resource at observation frame 2261, despite 4096/4096 visible bytes and no overlapping claim. Slot 37486 was also queued and null at that observation. At the corresponding capture offset in the control run, all three had native resources. In the demand run, red patches appeared on the shoulders and sleeves near the window, while most of the outfit remained dark. The separate runs differ in camera and streaming timing, and the captures do not establish which draw or texture contributed those patches.
The renderer reported VRAM pressure in all three runs. At the last demand-run queue sample it reported 8,450 slots deferred by the VRAM budget out of 8,471 queued. This is a queue-wide count.
I'd add a bounded, trace-only upload outcome for the requested slots, correlated by slot and descriptor write number. In particular, distinguish a budget deferral, a stale or unmapped view, a mirror error, and an SRV actually installed. A small fixture that verifies the tracing leaves the queue unchanged would preserve the property checked by the earlier probe. This would show whether promotion helps the missing slots reach a native SRV under pressure.
@Artking175 on GitHub · 2026-11-26 07:09 UTC · original
This branch now includes the material GPU readback and a bounded upload outcome trace, merged with RayTime main
64bd58f.Set
VICTORY_MATERIAL_TEXTURE_TRACE=1in a diagnostics build and select capture frames as before. A capture with a known queued write logs the shader, record, field offset, slot and write number. Later entries for that pair distinguish a stale write, missing pages, a staging or VRAM limit, an invalid or displaced title view, and whether a native SRV was installed, already present or unavailable. The trace only observes the existing upload path. Demand remains a separate switch.RTX 2060, Windows 10, Agility 1.614.1 and Rust 1.98.1: all 10 tests matched by
material_passed, including the packed GPU readback and trace-only queue assertion.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.