Repository navigation
Conversation
|
It cannot be combined with #610 as written From reading 770e194 next to #610's 5971e08; not from a run.
The smallest guard is to take the sparse path only where Not tested on this card yet; tiled-resources tier not checked here. Setup: RTX 3070 8 GB (driver 621.24, 32-lane waves), Ryzen 5 3600, 32 GB, Windows 11, Series X mode, 1920x1080, relay at its default (stage 2), card buffers 1 / 1024 MB, a diagnostics build. |
|
@CuteBooty confirmed on the merged source of Main now has its own opt-in level residency implementation in |
Adapt fxceless/victory-fork#704 for stable placed texture identity, table and bindless refreshes, and same-queue alias copies. Use fxceless/victory-fork#747's mapping-failure, packed-tail and SRV clamping rules, including a single-slice array view and MinLOD shift. Leave other texture shapes and the original committed fallback unchanged. Set VICTORY_SPARSE_BC1=0 to restore the committed path. Co-authored-by: ryotdev <360374475+ryotdev@users.noreply.github.com> Co-authored-by: AscilCH <178020422+AscilCH@users.noreply.github.com>
Change
VICTORY_SPARSE_BC1=1lets a restricted BC1 shader resource view use a D3D12 reserved resource when its hidden high-resolution levels have no committed source pages. The default uses the existing allocator.The D3D12 texture retains its original size, format, mip numbering and identity. The initial mapping covers every sampleable level and the entire packed mip tail. A broader view or nonzero source content promotes the missing standard levels on the existing direct queue. Every heap stays alive with its resource. Initial allocation failure falls back to committed backing. If a later allocation fails on a healthy device, resident levels continue receiving updates and the failed wider view cannot replace the last usable view of that resource. This last case does not retry a refused allocation every draw.
The initial scope is internal single-slice, single-sample, read-only BC1 at least 512 texels on each side. Unsupported tilings and any layout that would cost more than conventional backing when fully promoted fall back. #610 deliberately trades away high-resolution detail. #676 improves full-card scheduling and is related but orthogonal.
Windows results
RTX 5070 12 GB, driver 610.88, Series X. I used the same checkpoint, independent copies of a warm cache, matched frame offsets and the same executable within each pair. FPS is 140 frames divided by elapsed wall time in the post-loading window.
Separate instrumented runs observed about 1.4–1.5 GiB less physical backing for the affected textures. The renderer admitted extra resources and whole-process dedicated usage increased, while shared usage fell. The camera, some geometry and surfaces varied across independent loads. Existing visual defects remain. These are checkpoint-specific observations on one adapter. The final source additionally compares the actual held D3D12 object after a rejected promotion to handle irrelevant description padding. This failure case was validated synthetically after the timed runs.
Verification
victory-gputests passed with the switch on and off; four were ignored by the normal runner. Both new process-isolated ignored regressions passed when run explicitly with the switch on. The fixtures check object identity and valid old/new views, later content promotion, allocation failure, descriptor replacement with different padding and resident mip updates.cargo xtask policy --stagedandcargo xtask policypassed. No game data or captures are included.AI-assisted. Further testing on different adapters and additional scenes would help before considering any change to the default.